On 02/09/2011 06:45 PM, jdd wrote:
Hello,
1) I just picked the linuxrc name from an other thread, and I have seen it's said linurc can start an existing install.
I try to make a rescue cd able to boot installed system with minimal work. Right now I failed to use kexec (but I see that kexec don't works in virtualbox, this makes tests much longers).
the SDB page is a bit short for my understanding :-(
http://en.opensuse.org/SDB:Linuxrc
when I start linurc from my usual openSUSE install, it detects that (running system) and start in manual mode (the net install cd). that make network setup hard.
is linuxrc available on the present rescue system (I can't test it right now, I'm not at home)? Is it possible to use a install=hd:/(mounted root partition) with any openSUSE install, not the install system?
is is possible to give the hd:<dvd image> option from the usual install cd? I don't remember an option line at start, (to use the latest image just downloaded)
thanks jdd
I think you're looking in the wrong direction. You need to make a script that activates when the rescue system has loaded from a different boot menu item ie. boot installed system activates the rescue system, identifies the boot partition(s), if only one boot directory mount root on /mnt and if necessary mount boot on /mnt/boot, (I usually do the next step I don't know if it's necessary) "mount --bind /proc mnt/proc" and "mount --bind /sys /mnt/sys", then cd to boot and "kexec -l --initrd=initrd --command-line=< here you need to at least specify: root="variable containing root dev name" it helps to specify resume="swap device name"> (lastly specify the kernel to boot by symlink) vmlinuz" The next and last command is easy - "kexec -e" You can get all of the info you need from /boot/grub/menu.lst, "grep -A 4 'root (' menu.lst root (hd0,0) kernel /vmlinuz-2.6.34.7-0.7-desktop root=/dev/sda3 splash=0 resume=/dev/sda2 quiet showopts vga=0x31b initrd /initrd-2.6.34.7-0.7-desktop" Or a similar grep in /etc/lilo.conf There's a possibly useful script "/usr/sbin/kexec-bootloader", try booting the rescue system then execute these steps : a) mount root on /mnt b) mount --bind /proc /mnt/proc c) mount --bind /sys /mnt/sys note: make sure that boot is mounted if it's a separate partition. d) cd /mnt e) chroot /mnt f) /usr/sbin/kexec-bootloader g) kexec -e If that works then you are 80% complete. If you get stuck tell me what stage you're stuck at and I will try to help. Dave P -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org