diffstat for live-installer-39 live-installer-39boss1 changelog | 6 ++++++ live-installer.postinst | 11 +++++++++++ 2 files changed, 17 insertions(+) diff -Nru live-installer-39/debian/changelog live-installer-39boss1/debian/changelog --- live-installer-39/debian/changelog 2012-12-22 13:50:47.000000000 +0000 +++ live-installer-39boss1/debian/changelog 2014-02-03 03:59:47.000000000 +0000 @@ -1,3 +1,9 @@ +live-installer (39boss1) anokha; urgency=low + + * debian/live-installer.postinst: Added script to update the crypttab file. + + -- Prathibha B Mon, 03 Feb 2014 09:29:00 +0100 + live-installer (39) unstable; urgency=low [ Raphaƫl Hertzog ] diff -Nru live-installer-39/debian/live-installer.postinst live-installer-39boss1/debian/live-installer.postinst --- live-installer-39/debian/live-installer.postinst 2012-12-20 02:01:25.000000000 +0000 +++ live-installer-39boss1/debian/live-installer.postinst 2014-02-03 03:58:31.000000000 +0000 @@ -40,6 +40,12 @@ mv /target/etc/fstab /target/etc/fstab.live-installer fi + # Backup pre-existing /etc/crypttab as it will be overwritten by the + # copy of the live system + if [ -e /target/etc/crypttab ] && [ ! -e /target/etc/crypttab.live-installer ]; then + mv /target/etc/crypttab /target/etc/crypttab.live-installer + fi + for place in $PLACES; do [ ! -e $place ] && continue @@ -88,6 +94,11 @@ mv /target/etc/fstab.live-installer /target/etc/fstab fi + # Restore the crypttab file created by d-i + if [ -e /target/etc/crypttab.live-installer ]; then + mv /target/etc/crypttab.live-installer /target/etc/crypttab + fi + if [ ${PLACE_FOUND} -eq 0 ]; then error "Could not find any live images" exit 1