Skip to content

Commit 6b8da86

Browse files
authored
Merge pull request #173 from grml/build_only-docker
Fix BUILD_ONLY mode inside Docker
2 parents ec0a767 + 971bd57 commit 6b8da86

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: etc/grml/fai/config/hooks/instsoft.GRMLBASE

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ set -e
1313
# and can't skip instsoft.GRMLBASE we have to make sure
1414
# we exit here as well
1515
if [ -n "$BUILD_ONLY" ] ; then
16-
"Exiting hooks/instsoft.GRMLBASE as BUILD_ONLY environment is set."
16+
echo "Exiting hooks/instsoft.GRMLBASE as BUILD_ONLY environment is set."
17+
echo "W: This place was reached because updatebase.GRMLBASE failed."
1718
exit 0
1819
fi
1920

Diff for: etc/grml/fai/config/hooks/updatebase.GRMLBASE

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ if [ "$FAI_ACTION" = "softupdate" ] ; then
3434
fi
3535
# some packages must access /sys even in chroot environment
3636
if ! [ -d $FAI_ROOT/sys/kernel ] ; then
37-
mount -t sysfs sysfs $FAI_ROOT/sys
37+
mount -t sysfs sysfs $FAI_ROOT/sys || true
3838
fi
3939
# if we are using udev, also mount it into $FAI_ROOT
4040
if [ -f /etc/init.d/udev ] ; then
4141
mount --bind /dev $FAI_ROOT/dev || true
4242
fi
4343

4444
if [ -d $FAI_ROOT/run ] ; then
45-
mount -t tmpfs tmpfs $FAI_ROOT/run
45+
mount -t tmpfs tmpfs $FAI_ROOT/run || true
4646
mkdir $FAI_ROOT/run/lock
4747
fi
4848

0 commit comments

Comments
 (0)