X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Fpatches%2F39_persistence_with_forensic.patch;h=cfc2c818938c4946a1ce7c00fd0dd92f1e1668c4;hb=5eca029801201abc08b55da5f5d61ee308e8e4bb;hp=16a67b0e896c61c8a2504971bab53ab4cbfcf2bf;hpb=a488db657ecb072da4144790ccdeae04616b409f;p=live-boot-grml.git diff --git a/debian/patches/39_persistence_with_forensic.patch b/debian/patches/39_persistence_with_forensic.patch index 16a67b0..cfc2c81 100644 --- a/debian/patches/39_persistence_with_forensic.patch +++ b/debian/patches/39_persistence_with_forensic.patch @@ -1,12 +1,12 @@ ---- a/scripts/live-premount/readonly -+++ b/scripts/live-premount/readonly -@@ -32,4 +32,21 @@ - blockdev --setro $device && printf "done [ execute \"blockdev --setrw %-9s\" to unlock]\n" $device >/dev/console || printf "failed\n" >/dev/console - fi +--- a/scripts/boot/0020-read-only ++++ b/scripts/boot/0020-read-only +@@ -53,4 +53,20 @@ + ;; + esac done + + if grep -qe persistence /proc/cmdline -+ then ++ then + printf " * Persistence mode enabled, searching for persistency related devices to unlock\n" >/dev/console + + for label in custom-ov home-rw home-sn live-rw live-sn @@ -14,11 +14,10 @@ + if blkid -t LABEL="$label" | grep -q '.' + then + device=$(blkid -t LABEL="$label" | awk -F: '{print $1}') -+ printf " - Setting device %-9s with label '%s' to write mode for persistence mode: " "$device" "$label" >/dev/console ++ printf " - Setting device %-9s with label '%s' to write mode for persistence mode: " "$device" "$label" >/dev/console + blockdev --setrw $device && printf "done\n" >/dev/console || printf "failed\n" >/dev/console + fi -+ + done + fi + - fi + }