forked from kiss-community/kiss
Only copy resolv.conf from host if it doesn't exist
This commit is contained in:
parent
f453d0f99f
commit
9985344d25
@ -38,7 +38,7 @@ main() {
|
||||
}
|
||||
|
||||
log Copying /etc/resolv.conf from host; {
|
||||
[ ! -f "/$1/etc/resolv.conf" ] && cp /etc/resolv.conf "$1/etc"
|
||||
[ -f "/$1/etc/resolv.conf" ] || cp /etc/resolv.conf "$1/etc"
|
||||
}
|
||||
|
||||
log Entering chroot; {
|
||||
|
Loading…
Reference in New Issue
Block a user