aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-09-05 08:24:58 +0200
committerMike Gabriel <sunweaver@debian.org>2023-09-07 18:45:35 +0000
commitf1ae3f8705b7aa27132d6a9d54a953410fe8a07b (patch)
tree643ddd48c19ed88f5ae38875dfc6ec0819616c79
parent6b2eb0bcd8bf34eb72393749f92bd25cafb26f51 (diff)
downloaddebian-edu-fai+itzks-f1ae3f8705b7aa27132d6a9d54a953410fe8a07b.tar.gz
debian-edu-fai+itzks-f1ae3f8705b7aa27132d6a9d54a953410fe8a07b.tar.bz2
debian-edu-fai+itzks-f1ae3f8705b7aa27132d6a9d54a953410fe8a07b.zip
bin/debian-edu-faiinstall: Mount /proc and /sys in nfsroot
Mount prior to creating/updating it. Those mountpoints are needed by dracut's 45url-libs module.
-rwxr-xr-xbin/debian-edu-faiinstall7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/debian-edu-faiinstall b/bin/debian-edu-faiinstall
index 036b51c..fce3bf8 100755
--- a/bin/debian-edu-faiinstall
+++ b/bin/debian-edu-faiinstall
@@ -280,17 +280,20 @@ for codename in ${codenames}; do
if [ ! -f "${NFSROOT}/.DEBIAN_EDU_FAI_NFSROOT_INSTALLATION_COMPLETED" ]; then
# enforce NFSROOT re-creation (or initial creation)
+ mkdir -p "${NFSROOT}/proc"
+ mount -t proc proc "${NFSROOT}/proc"
TMPDIR=/tmp fai-make-nfsroot -v -f -N -C ${faiconfig}
touch "${NFSROOT}/.DEBIAN_EDU_FAI_NFSROOT_INSTALLATION_COMPLETED"
-
else
-
+ mount -t proc proc "${NFSROOT}/proc"
# update packages (and clean old kernel images) in NFSROOT
TMPDIR=/tmp fai-make-nfsroot -v -k -N -C ${faiconfig}
# adjust nfsroot configuration (SSH pubkeys, rootpw, etc.)
TMPDIR=/tmp fai-make-nfsroot -v -a -C ${faiconfig}
fi
+ [ -d "${NFSROOT}/proc/self" ] && umount "${NFSROOT}/proc"
+ [ -d "${NFSROOT}/sys/class" ] && umount "${NFSROOT}/sys"
# Remove /srv/tftp/debian-edu-fai.ARCH+CODENAME after NFSROOT creation.
# We don't need that as we use our own iPXE boot config (instead