Skip to content

Commit

Permalink
using --pid breaks etckeeper
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Jan 12, 2023
1 parent 9e640be commit 2a56cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/fai
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ fai_init() {
# if ROOTCMD was set from outside, do not touch it
if [ -z "$ROOTCMD" ]; then
# check if unshare can be used (e.g. not possible in some container environments)
unshare --pid --fork --kill-child --mount-proc chroot / ls >/dev/null 2>&1
unshare --fork --kill-child --mount-proc chroot / ls >/dev/null 2>&1
if [ $? -eq 0 ]; then
ROOTCMD="unshare --pid --fork --kill-child --mount-proc chroot $FAI_ROOT"
else
Expand Down

0 comments on commit 2a56cec

Please sign in to comment.