On Tuesday 22 November 2011, Javier Conti wrote:
Hi list,
I installed openSUSE 12.1 on an PC-Engines Alix system board, which uses the pata_amd driver to access its compact flash disk. Since I installed the system on a virtual machine before putting the flash in the real hardware, the driver was not included in the initrd image and obviously I couldn't see the disk on the real hardware. Booting the compact flash in the virtual machine and rebuilding the initrd image with the driver included solved the issue.
However, I tried quite hard to get a shell early during the boot process, in the initrd environment, before trying to mount anything, but failed. I tried the various "Single", "S", "1", "init=/bin/bash", etc, as in older systems, but none stopped before trying to mount /dev/sda1. Then I tried "systemd.unit=emergency.target", but that didn't stop before trying to mount the disk.
Since I'm very new to systemd
Could you do it with sysvinit? It should not make a difference.
, I'd like to know how to get a shell as early as possible during the boot process in order to easily troubleshoot situations where rootfs (or even the whole disk) is not accessible at boot time for some reason.
I don't think there is a proposed way to get interactive shell within initrd via grub command line parameters. You could do the trick by editing root=/dev/sda1 to root=/dev/null then mounting fails with no delay and leaves you with interactive bash. (root=/dev/non-existent would work too but with long timeout). BTW the default initrd is not a comfortable rescue system. To make it more useful you should include a busybox binary at least. cu, Rudi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org