From 748d4a84d13eb14ad0b434dbd94df43d51864048 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 29 Nov 2017 11:31:56 +0100 Subject: linux-boot: Ensure /etc exists on the root file system. Fixes a regression introduced in c8289690365887ca1dd122645e479a89cf7cd969 whereby /etc would no longer be created as a result of calling 'mark-as-not-killable'. This would affect ISO images because 'make-iso9660-image' does not create /etc by default. In particular, the ISO installation image as created by the "iso-image-installer" test would fail to boot while creating the /root/etc/mtab symlink: . * gnu/build/linux-boot.scm (mount-root-file-system): Make sure /root/etc exists. --- gnu/build/linux-boot.scm | 1 + 1 file changed, 1 insertion(+) (limited to 'gnu') diff --git a/gnu/build/linux-boot.scm b/gnu/build/linux-boot.scm index a1ff4dd1ea..8ac99af66c 100644 --- a/gnu/build/linux-boot.scm +++ b/gnu/build/linux-boot.scm @@ -270,6 +270,7 @@ (define* (mount-root-file-system root type ;; Make sure /root/etc/mtab is a symlink to /proc/self/mounts. (false-if-exception (delete-file "/root/etc/mtab")) + (mkdir-p "/root/etc") (symlink "/proc/self/mounts" "/root/etc/mtab")) (define (switch-root root) -- cgit v1.2.3