In bionic buildd image chroot, /etc/resolv.conf is a symbolic link to a configuration file in the /run directory. A call to truncate will modify that file, which we should not do. Instead, we want to remove the symbolic link and replace it with an empty file.sil2100/appliance-images
parent
f60c01ef0b
commit
77cb232e8b
@ -1,4 +1,3 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
chroot chroot truncate -s 0 /etc/resolv.conf
|
||||
#!/bin/sh -e
|
||||
chroot chroot rm /etc/resolv.conf
|
||||
chroot chroot touch /etc/resolv.conf
|
||||
|
Loading…
Reference in new issue