X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F42disable_apparmor;h=f87cab4fdda70b1cc1ff4f2b3ad329107ee8921a;hb=ef4ec3a72d79454603dfb8a0611852d858e515ea;hp=fd49aa94912e1cc96c85aa9fb6b7a6d894957728;hpb=5f0f3b0c36d433a462176f970d371c77c3020749;p=live-boot-grml.git diff --git a/scripts/live-bottom/42disable_apparmor b/scripts/live-bottom/42disable_apparmor index fd49aa9..f87cab4 100755 --- a/scripts/live-bottom/42disable_apparmor +++ b/scripts/live-bottom/42disable_apparmor @@ -31,6 +31,9 @@ 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