[Piuparts-commits] [SCM] piatti.debian.org configuration files branch, master, updated. 0.43-52-gfb4c1ed

Andreas Beckmann debian at abeckmann.de
Thu May 17 18:53:16 UTC 2012


The following commit has been merged in the master branch:
commit 39c1576ad4f65e0fe3b3c86fe41061e6b72444f5
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Sun Feb 19 16:44:09 2012 +0100

    allow kernel removal inside chroot
    
    Allow to remove the kernel image inside the chroot even it its
    version matches the kernel running on the host.
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/org/piuparts.debian.org/etc/scripts/pre_remove_exceptions b/org/piuparts.debian.org/etc/scripts/pre_remove_exceptions
index 30825d4..eec4ab4 100755
--- a/org/piuparts.debian.org/etc/scripts/pre_remove_exceptions
+++ b/org/piuparts.debian.org/etc/scripts/pre_remove_exceptions
@@ -19,4 +19,8 @@ case $PIUPARTS_OBJECTS in
 				;;
 esac
 
+# Allow removal of the kernel running on the host from the chroot.
+UNAME_R="$(uname -r)"
+echo "linux-image-$UNAME_R linux-image-$UNAME_R/prerm/removing-running-kernel-$UNAME_R boolean false" | debconf-set-selections
+
 exit 0

-- 
piatti.debian.org configuration files



More information about the Piuparts-commits mailing list