[Piuparts-commits] [SCM] piuparts git repository branch, piatti.git, updated. f3d478e5f291baaf9e84d1982ca5e2e6b353a232

Andreas Beckmann debian at abeckmann.de
Sun Apr 1 08:47:47 UTC 2012


The following commit has been merged in the piatti.git 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

-- 
piuparts git repository



More information about the Piuparts-commits mailing list