mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-03-11 19:31:18 +00:00
Safely set /etc/resolv.conf to an empty file in buildd images
In the 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.
This commit is contained in:
parent
8f76e539b1
commit
8bc9cb77a1
@ -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…
x
Reference in New Issue
Block a user