summaryrefslogtreecommitdiff
path: root/share/hydractl/provision
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-12-29 14:23:00 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-12-29 14:23:00 -0200
commit96061a360de383a268b34d001ca80bbc966b9a19 (patch)
tree82928376597f7a5d1eb449a542fe2c35ad1c9b4e /share/hydractl/provision
parentf70e4876358b860182684aece76dba5466f8a8d0 (diff)
downloadhydra-96061a360de383a268b34d001ca80bbc966b9a19.tar.gz
hydra-96061a360de383a268b34d001ca80bbc966b9a19.tar.bz2
Adds apparmor into grub linux cmdline
Diffstat (limited to 'share/hydractl/provision')
-rwxr-xr-xshare/hydractl/provision4
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