Ask your questions here.
Post a reply
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: refractainstaller as a text file

Thu Oct 23, 2014 8:11 pm

Let me make notes here too.
1) Indeed no etc/hostname, but etc/conf.d/hostname
creating etc/hostname
2) changing zsh to bash by typing "bash"
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: refractainstaller as a text file

Thu Oct 23, 2014 8:36 pm

3) Hard times to figure out where "medium" and "rootfs" are located, or what might be the equivalent namings:

Code:
  `
  root# find /livemnt -name '*medium*' | grep -v png
  root# find /livemnt -name '*rootfs*' | grep -v png
  root# ls /livemnt/
  boot memory squashfs tftpmem
  `

4) Running the mount commands for proc, dev and sys fail from CLI too
dev and sys can be run without the -t option (one for tmpfs, the other for sysfs), proc fails no matter what.
Trying this ones:

Code:
  `# cd /mnt/funtoo
  # mount -t proc none proc
  # mount --rbind /sys sys
  # mount --rbind /dev dev
  `

from here: http://www.funtoo.org/Funtoo_Linux_Inst ... nto_Funtoo
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: refractainstaller as a text file

Thu Oct 23, 2014 9:10 pm

5) Regarding "medium" and "rootfs", the "tree" output from above, fsmirthed posted it:
5.1) medium:
I find isolinux at

Code:
  `[email protected]
  /root % find /livemnt -name '*isolinux*'
  /livemnt/squashfs/usr/share/oscar/usr/isolinux18.cfg
  /livemnt/squashfs/usr/share/oscar/usr/isolinux18_rapidesos.cfg
  /livemnt/squashfs/usr/share/syslinux/isolinux-debug.bin
  /livemnt/squashfs/usr/share/syslinux/isolinux.bin
  /livemnt/boot/isolinux
  /livemnt/boot/isolinux/isolinux.bin
  /livemnt/boot/isolinux/isolinux.cfg
  /livemnt/boot/isolinux/isolinux.old
  `

Can't say i find "live":
[email protected]
/root % find /livemnt -name '*live*'

Code:
  `/livemnt
  /livemnt/memory/livemnt
  /livemnt/squashfs/sbin/livecd-functions.sh
  /livemnt/squashfs/usr/livecd
  /livemnt/squashfs/usr/share/mime/message/delivery-status.xml
  /livemnt/squashfs/usr/share/zsh/5.0.5/functions/Prompts/prompt_oliver_setup
  /livemnt/squashfs/var/db/pkg/app-misc/livecd-tools-2.0.3
  /livemnt/squashfs/var/db/pkg/app-misc/livecd-tools-2.0.3/livecd-tools-2.0.3.ebuild
  `

Obviously no pkg_list.jessie
5.2) "rootfs" including filesystem.squashfs including a default filesystem is at:
/livemnt/squashfs
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: refractainstaller as a text file

Thu Oct 23, 2014 9:27 pm

Error, as no dpkg is installed.
Error massage:

Code:
  `Usage: grep [OPTION]... PATTERN [FILE]...
  Try 'grep --help' for more information.
  Usage: grep [OPTION]... PATTERN [FILE]...
  Try 'grep --help' for more information.
  mke2fs 1.42.12 (29-Aug-2014)
  262144+0 records in
  262144+0 records out
  268435456 bytes (268 MB) copied, 1.92493 s, 139 MB/s
  dpkg-query: error: failed to open package info file `/var/lib/dpkg/status' for reading: No such file or directory
  Probing devices to guess BIOS drives. This may take a long time.
  df: Warning: cannot read table of mounted file systems: No such file or directory
  df: Warning: cannot read table of mounted file systems: No such file or directory
  Could not find device for /boot: Not found or not a block device.
  `

code in "refractainstaller"

Code:
  `grubversion=$(dpkg -l | egrep "ii|hi" | grep -v bin | grep -v doc | awk '$2 ~ "grub-[glp]" { print $2}')
  `

Trying "equery file grub"

Code:
  `root# equery list grub
  * Searching for grub ...
  [I--] [??] sys-boot/grub-0.97-r13:0
  [I--] [??] sys-boot/grub-2.02_beta2-r2:2
  root#
  `

but don't get it sorted ...
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: refractainstaller as a text file

Thu Oct 23, 2014 10:31 pm

Maybe oscar is the equivalent of live just as cow is for ubuntu.
The point mounting /proc, /sys, and /dev is so you can run grub-install in chroot. If the commands for that are different in gentoo, then use the ones that should work.
The point of finding the grub version is because the commands for installing grub to a partition instead of the mbr are different between grub-legacy and grub-pc. If you're using grub2 and it's going to the mbr, just focus on that. If that works, then other options can be added later.
I looked at the funtoo install guide. You want to script that exactly, or you want to try copying the live system from the dvd? I'm assuming the latter. Here are the steps.
1. Partition the disk (boot, swap and root)
2. Format the partitions
3. Diverge from the funtoo install directions and copy the live system
4. Mount proc, sys and dev
5. (don't know if you need to install portage repo - not if you copy it from the dvd, I guess.)
6. Configure system - there's a list of files. Some are optional. Some might get copied from dvd.
7. Figure out what, if anything, needs to be emerged before leaving chroot.
Is the kernel on the dvd the same as one you'd use on a hard drive, or must you emerge it?
WTF??? (chroot) # echo sys-kernel/debian-sources > (/)etc/portage/sets/kernel
8. Install the bootloader
9. Configure the network? You should only need to install stuff that didn't get copied from the dvd.
10. Don't know if you need to set the root password - if there's a root pw on the dvd, maybe it gets copied?
11. Get out of chroot, umount, reboot.
Fill in the commands. A lot of them are on that page in green boxes.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: refractainstaller as a text file

Thu Oct 23, 2014 10:53 pm

Thanks for the list.
Looks good.
1) Yes, i want to copy the stuff from the liveCD (SystemRescue)
2) I tried the according mount commands in "refractainstaller", and that worked
3) It looks as if all was copied over
4) I am stuck at this problem right now: I can't find the kernel. It is not in /boot, running uname -r and trying "locate" for that doesn't show it.
5) I forgot to passwd, this time, yesterday i did it, so thanks for that

> Is the kernel on the dvd the same as one you'd use on a hard drive, or must you emerge it?
> WTF??? (chroot) # echo sys-kernel/debian-sources > (/)etc/portage/sets/kernel

Truth to be told: my main problem is trying to avoid having to configure the kernel.That is how my idea came up
WTF? -> If i understand correct in funtoo you can choose between different kernels (vanilla, debian, redhat and another one, probably the one with the gentoo patches). The how-to takes the debian kernel, it seems, hence the "echo" to /sets/kernel. Wouldn't bet, obviously
-
I could try to chroot and install a kernel in the usual manner (configure it, compile it and cp it to /boot, then edit grub config). Kinda beats the purpose, though.
I am not too sure this is really a good idea ( i run in quite some problems with the liveCD, mainly when trying to emerge/install apps. Perhaps SystemRescue is configured by means which make is useless for installation ... ? Don't know enough about portage to say anything about it ).
Thanks again. Really.
Looking through the script was fun too, btw.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: refractainstaller as a text file

Thu Oct 23, 2014 10:53 pm

Short version:
Where the bloody hell is the kernel?
If you got better things to do then really ignore.
This is very weird, as far it's me.
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: refractainstaller as a text file

Fri Oct 24, 2014 12:16 am

http://www.sysresccd.org/Sysresccd-manu ... n_harddisk
Kernel is isolinux/rescuecd
There used to be a gentoo live-cd that had an easy install. I installed 2006.0 on my lunch break one day. 20 minutes of reading, 20 minutes of actually installing.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: refractainstaller as a text file

Fri Oct 24, 2014 11:44 am

I recall that installable Gentoo medium too.
Back in the days, when i started using PC's and tried to figure out which distribution to use (2007?).
Installed it without any reading, but wasn't able to figure out how to install further applications.
Today it sure would be quite a help to be quickly done with it.
I don't recall installation process to be outstanding difficult, though, mainly copy and paste commands from the how-to.
Configuring the kernel took me quite a while and quite some websearches (that doesn't make it outstanding difficult, only timeconsuming).
The actual liveDVD seems to be very dated (which will make the next dist-upgrade anything but fun).
I guess being proud on highly individual systems there is not much need in the gentoo community for something like that
(imho: keeping out the most horrible linux users by having to compile the kernel on your own isn't the worst thing i can think of ... ).
For the lulz i will try to finish the SystemRescue via refractainstaller project, but in the end i will go for a usual gentoo or funtoo installation.
nadir

- nadir
- Posts: 1160
- Joined: Wed Mar 09, 2011 4:18 am
- Location: here

## Re: refractainstaller as a text file

Sat Oct 25, 2014 4:41 am

And ...
hold your breath ...
It worked.
So in short i:
a) took the refractainstaller script fsmithred posted above
b) created the file etc/hostname
c) changed the mount commands for chroot (sys, dev and proc) slightly, according to the funtoo wiki
d) copied kernel and initramfs to /boot
( initram.igz being the initramfs and rescue64 being the kernel)
e) entry in grub:
menuentry "SystemRescue" {
set root=(hd0,2)
linux /boot/rescue64 root=/dev/sda2 ro vga=normal rootfstype=ext4
initrd /boot/initram.igz
}
Might be i missed a step or two, but in general that was it.
If that is a good idea is still a question worth to consider.
1) I got very hard times installing further apps
2) I got no idea how much changes are made to gentoo by systemrescue (i was told "it is based on gentoo, but a thing on it's own)
3) the how-to linked to by fsmithred, systemrescue wiki, gives a way to put the liveCD on the harddisk (like in: there are CD's which are supposed to only be used as a liveCD)
Thanks again.
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.