summaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-09-10 15:58:12 (EDT)
committer P. J. McDermott <pj@pehjota.net>2016-09-10 16:03:10 (EDT)
commitf4b42eb6e14c5320ecdeb1a93c20df8cd50f8b21 (patch)
tree2e4e2f834decac4545121beed84eda7d8350cc4b /hosts
parent8333211b64ccce2550401130dfb9a30d2f24f11c (diff)
downloadpc-inst-f4b42eb6e14c5320ecdeb1a93c20df8cd50f8b21.zip
pc-inst-f4b42eb6e14c5320ecdeb1a93c20df8cd50f8b21.tar.gz
pc-inst-f4b42eb6e14c5320ecdeb1a93c20df8cd50f8b21.tar.bz2
generic1: Update initramfs
Otherwise, this non-fatal but problematic error happens on boot, because apparently Linux is installed too early (cf. Debian bug #764596): fsck: error 2 (No such file or directory) while executing fsck.ext4 for /dev/sda1
Diffstat (limited to 'hosts')
-rw-r--r--hosts/generic13
1 files changed, 3 insertions, 0 deletions
diff --git a/hosts/generic1 b/hosts/generic1
index db283e8..acd40b0 100644
--- a/hosts/generic1
+++ b/hosts/generic1
@@ -84,6 +84,9 @@ do_postinst()
in_target update-grub
in_target grub-install "${dev}"
+ # Update initramfs.
+ in_target update-initramfs -u
+
# Configure network interfaces.
cat >"${target}/etc/network/interfaces" <<-EOF
# This file describes the network interfaces available on your system