Add guestfs_rescue=1 appliance option to start a rescue shell.
[libguestfs.git] / appliance / make-initramfs.sh.in
index b1d3c39..b39b13d 100755 (executable)
@@ -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__