From: Richard Jones Date: Thu, 11 Jun 2009 16:27:18 +0000 (+0100) Subject: Add guestfs_rescue=1 appliance option to start a rescue shell. X-Git-Tag: 1.0.45~1 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=f6018d198782c1e9ed062ba60dbd0a590c3b7d7b Add guestfs_rescue=1 appliance option to start a rescue shell. --- diff --git a/TODO b/TODO index 3c123d4..1e265c2 100644 --- a/TODO +++ b/TODO @@ -110,13 +110,6 @@ code directly into libguestfs? ---------------------------------------------------------------------- -guestfs rescue shell - -Have a kernel command line option to enable a rescue shell -from guestfsd. - ----------------------------------------------------------------------- - PPC problems: ppc (32 bit) works with qemu from git, however there is no serial console diff --git a/appliance/make-initramfs.sh.in b/appliance/make-initramfs.sh.in index b1d3c39..b39b13d 100755 --- a/appliance/make-initramfs.sh.in +++ b/appliance/make-initramfs.sh.in @@ -156,6 +156,9 @@ modprobe dm_mod ||: /sbin/route add default gw 10.0.2.2 lvm vgscan --ignorelockingfailure lvm vgchange -ay --ignorelockingfailure +if grep -sq guestfs_rescue=1 /proc/cmdline; then + bash -i +fi exec guestfsd -f __EOF__