Adding noapparmor boot parameter.
authorDaniel Baumann <daniel@debian.org>
Sun, 23 Sep 2007 13:11:49 +0000 (15:11 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:31:05 +0000 (17:31 +0100)
scripts/live
scripts/live-bottom/42disable_cups_apparmor

index 15d5dc8..b883c92 100755 (executable)
@@ -170,6 +170,11 @@ Arguments ()
                                export NOACCESSIBILITY
                                ;;
 
+                       noapparmor)
+                               NOAPPARMOR="Yes"
+                               export NOAPPARMOR
+                               ;;
+
                        noaptcdrom)
                                NOAPTCDROM="Yes"
                                export NOAPTCDROM
index 588214e..09d1869 100755 (executable)
@@ -20,6 +20,11 @@ esac
 
 # live-initramfs header
 
+if [ -n "${NOAPPARMOR}" ]
+then
+       exit 0
+fi
+
 . /scripts/live-functions
 
 log_begin_msg "Disabling AppArmor profile for Cups..."