Skip to content

Commit

Permalink
updatebase.GRMLBASE: allow all mounts to fail
Browse files Browse the repository at this point in the history
Necessary for building inside docker.
  • Loading branch information
zeha committed Nov 22, 2024
1 parent 04abbe3 commit 3308371
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/grml/fai/config/hooks/updatebase.GRMLBASE
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ if [ "$FAI_ACTION" = "softupdate" ] ; then
fi
# some packages must access /sys even in chroot environment
if ! [ -d $FAI_ROOT/sys/kernel ] ; then
mount -t sysfs sysfs $FAI_ROOT/sys
mount -t sysfs sysfs $FAI_ROOT/sys || true
fi
# if we are using udev, also mount it into $FAI_ROOT
if [ -f /etc/init.d/udev ] ; then
mount --bind /dev $FAI_ROOT/dev || true
fi

if [ -d $FAI_ROOT/run ] ; then
mount -t tmpfs tmpfs $FAI_ROOT/run
mount -t tmpfs tmpfs $FAI_ROOT/run || true
mkdir $FAI_ROOT/run/lock
fi

Expand Down

0 comments on commit 3308371

Please sign in to comment.