Detect being run in a live system being built on a live system by looking for the...
authorDaniel Baumann <mail@daniel-baumann.ch>
Mon, 11 Mar 2013 08:59:13 +0000 (09:59 +0100)
committerDaniel Baumann <mail@daniel-baumann.ch>
Mon, 6 May 2013 19:28:54 +0000 (21:28 +0200)
bin/live-update-initramfs

index fa6c7e7..d8694aa 100755 (executable)
@@ -20,7 +20,8 @@ then
        exit 1
 fi
 
-if grep -qs "boot=live" /proc/cmdline
+# system is a live system and not a system in the process of being built by live-build
+if [ ! -e /.live-build ] && grep -qs "boot=live" /proc/cmdline
 then
        if grep -qs "\/lib\/live\/mount\/medium" /proc/mounts
        then