]> gitweb.fluxo.info Git - hydra.git/commitdiff
Adds apparmor into grub linux cmdline
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 29 Dec 2016 16:23:00 +0000 (14:23 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 29 Dec 2016 16:23:00 +0000 (14:23 -0200)
share/hydractl/provision

index 7ed066afdbfa08b1f9de6b7ff6d32b448878da56..60727069ce61fb5df8bda2bf9cee16cf422a0994 100755 (executable)
@@ -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