Adding upstream version 1.199.1.
[debian-live-boot/hramrach.git] / scripts / live-bottom / 42disable_apparmor
blobf87cab4fdda70b1cc1ff4f2b3ad329107ee8921a
1 #!/bin/sh
3 #set -e
5 # initramfs-tools header
7 PREREQ=""
9 prereqs()
11 echo "${PREREQ}"
14 case "${1}" in
15 prereqs)
16 prereqs
17 exit 0
19 esac
21 # live-initramfs header
23 if [ -n "${NOAPPARMOR}" ]
24 then
25 exit 0
28 . /scripts/live-functions
30 log_begin_msg "Disabling AppArmor (does not work with stacked file systems)"
32 # live-initramfs script
34 if [ -x /root/etc/init.d/apparmor ]
35 then
36 chroot /root update-rc.d -f apparmor remove
39 log_end_msg