This website requires JavaScript.
Explore
Help
Sign In
Lubuntu
/
livecd-rootfs
Watch
3
Star
0
Fork
0
You've already forked livecd-rootfs
mirror of
https://git.launchpad.net/livecd-rootfs
synced
2025-02-10 12:47:30 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
livecd-rootfs
/
live-build
/
buildd
/
hooks
/
49-empty-resolv-conf.binary
4 lines
84 B
Plaintext
Raw
Normal View
History
Unescape
Escape
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.
2020-03-25 18:24:27 -04:00
#!/bin/sh -e
chroot chroot rm /etc/resolv.conf
chroot chroot touch /etc/resolv.conf
Reference in New Issue
Copy Permalink