Skip to content

Commit

Permalink
add test before doing divert
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Jun 6, 2023
1 parent 210d37c commit 7294b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/updatebase
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if [ "$FAI_ACTION" = "install" -o "$FAI_ACTION" = "dirinstall" ]; then
# if libc is upgraded init u is called in chroot environment and
# then init will eat up much cpu time
# fake some more programs
fai-divert -a /sbin/init
[ -L $target/sbin/init ] || fai-divert -a /sbin/init
fai-divert -a /usr/sbin/policy-rc.d
# never start any daemons inside chroot during installtion
cat > $FAI_ROOT/usr/sbin/policy-rc.d <<EOF
Expand Down

0 comments on commit 7294b41

Please sign in to comment.