Skip to content

Commit 4bf9994

Browse files
committed
Check for the existence of nsswitch.conf
1 parent df41bed commit 4bf9994

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/core/net/deploy.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ do_configure()
2727
do
2828
echo "nameserver ${dns}" >> "${CHROOT_DIR}/etc/resolv.conf"
2929
done
30-
sed -i 's/systemd//g' "${CHROOT_DIR}/etc/nsswitch.conf"
30+
if [ -e "${CHROOT_DIR}/etc/nsswitch.conf" ]; then
31+
sed -i 's/systemd//g' "${CHROOT_DIR}/etc/nsswitch.conf"
32+
fi
3133
return 0
3234
}
3335

0 commit comments

Comments
 (0)