X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F42disable_apparmor;h=f87cab4fdda70b1cc1ff4f2b3ad329107ee8921a;hb=refs%2Ftags%2Fupstream%2F1.199.1;hp=d325ddb1dd15243cd4fb35e9601551ad5b21126d;hpb=2a2c02a56d85eb705edd1caf1294c1685c1ac7db;p=live-boot-grml.git diff --git a/scripts/live-bottom/42disable_apparmor b/scripts/live-bottom/42disable_apparmor index d325ddb..f87cab4 100755 --- a/scripts/live-bottom/42disable_apparmor +++ b/scripts/live-bottom/42disable_apparmor @@ -27,10 +27,13 @@ fi . /scripts/live-functions -log_begin_msg "Disabling AppArmor (does not work with stacked file systems)..." +log_begin_msg "Disabling AppArmor (does not work with stacked file systems)" # live-initramfs script -chroot /root update-rc.d -f apparmor remove +if [ -x /root/etc/init.d/apparmor ] +then + chroot /root update-rc.d -f apparmor remove +fi log_end_msg