Silence a number of annoying and distracting bootup messages.
[live-boot-grml.git] / scripts / live-bottom / 42disable_apparmor
index fd49aa9..f87cab4 100755 (executable)
@@ -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