install chboot to /boot in case its needed
[automated-distro-installer] / fai / config / scripts / GRUB_PC / 11-ian
index 199e4f860745ac55c1eb4ac23fc3509d08cfcb58..765034041aedc7b3f2e4a0305ce9447e5cdeed19 100755 (executable)
@@ -8,18 +8,23 @@ if [[ $EUID != 0 ]]; then
   exit 1
 fi
 
-
 if ! type -t fcopy &>/dev/null; then
   sudo apt-get -y install fai-client
 fi
 
 chroot $FAI_ROOT bash <<'EOFOUTER'
+if getent group systemd-journal >/dev/null; then
+  # makes the journal be saved to disk.
+  mkdir -p /var/log/journal
+  chmod 755 /var/log/journal
+fi
 debconf-set-selections <<EOF
 kexec-tools kexec-tools/load_kexec boolean false
 EOF
 apt-get install -y pxe-kexec
 EOFOUTER
 
+fcopy -r /boot # -r = recursive
 # note: # fcopy -i = ignore nonmatching class error, always return 0.
 # this is also done by FABASE/10-misc by default.
 fcopy -ir /root
@@ -70,9 +75,6 @@ usermod -aG adm,cdrom,floppy,sudo,audio,dip,video,plugdev,netdev ian
 
 if getent group systemd-journal >/dev/null; then
   usermod -aG systemd-journal ian
-  # makes the journal be saved to disk.
-  mkdir -p /var/log/journal
-  chmod 755 /var/log/journal
 fi
 # https://askubuntu.com/questions/33416/how-do-i-disable-the-boot-splash-screen-and-only-show-kernel-and-boot-text-inst
 # it suggests not having plymouth-theme-ubuntu-text, but