mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-09-28 12:22:39 -06:00
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; {
|
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; {
|
log Entering chroot; {
|
||||||
|
Loading…
Reference in New Issue
Block a user