diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-12-29 14:23:00 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-12-29 14:23:00 -0200 |
commit | 96061a360de383a268b34d001ca80bbc966b9a19 (patch) | |
tree | 82928376597f7a5d1eb449a542fe2c35ad1c9b4e /share/hydractl/provision | |
parent | f70e4876358b860182684aece76dba5466f8a8d0 (diff) | |
download | hydra-96061a360de383a268b34d001ca80bbc966b9a19.tar.gz hydra-96061a360de383a268b34d001ca80bbc966b9a19.tar.bz2 |
Adds apparmor into grub linux cmdline
Diffstat (limited to 'share/hydractl/provision')
-rwxr-xr-x | share/hydractl/provision | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision index 7ed066a..6072706 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -457,6 +457,10 @@ if [ "$grub" == "y" ]; then echo "Setting up GRUB..." $APT_INSTALL grub-pc -y + sed -i -e 's/^GRUB_CMDLINE_LINUX_DEFAULT="quiet"$/GRUB_CMDLINE_LINUX_DEFAULT="quiet apparmor=1 security=apparmor"' \ + $WORK/etc/default/grub + hydra_sudo_run chroot $WORK/ update-grub + if [ "$encrypt" == "y" ]; then echo '' | $SUDO tee -a $WORK/etc/default/grub > /dev/null echo '# Full Disk Encryption Support' | $SUDO tee -a $WORK/etc/default/grub > /dev/null |