Ubuntu seems to have changed since the script was released, and /etc/resolv.conf is now a link that points to /run/resolvconf/resolv.conf. Because of this, casper will not create /etc/resolv.conf if it doesn't exist, and will only update /run/resolvconf/resolv.conf.
However, casper will only update /run/resolvconf/resolv.conf if it's empty, so try adding:
emptyfile /run/resolvconf/resolv.conf
somewhere after the first replaced line. Ubuntu might try to replace the contents of this file before relinux has a chance to compress this in filesystem.squashfs, so I would advise you to disconnect your internet before running relinux.
This is not a good fix in any way, because it modifies the filesystem of your host computer (other than in /home/relinux), which was a strict non-goal of relinux. However, I'm hoping it should work, at least temporarily :)
If it doesn't work, try replacing the emptyfile line with:
I'm very sorry, I had entirely forgotten about this bug report. Let me know if this works! :)
A better fix would be to copy /run to dummysys, and modify run/resolvconf/resolv.conf there, then add it to stage 1 of filesystem.squashfs (and exclude it from stage 2). This will probably be what I will do for relinux (if this works).
For relinux 0.3a3, try replacing (line 638):
rm -rf X11/xorg.conf* resolv.conf hosts hostname timezone {m,fs}tab
with:
rm -rf X11/xorg.conf* hosts hostname timezone {m,fs}tab
to keep resolv.conf.
Ubuntu seems to have changed since the script was released, and /etc/resolv.conf is now a link that points to /run/resolvconf /resolv. conf. Because of this, casper will not create /etc/resolv.conf if it doesn't exist, and will only update /run/resolvconf /resolv. conf.
However, casper will only update /run/resolvconf /resolv. conf if it's empty, so try adding:
emptyfile /run/resolvconf /resolv. conf
somewhere after the first replaced line. Ubuntu might try to replace the contents of this file before relinux has a chance to compress this in filesystem. squashfs, so I would advise you to disconnect your internet before running relinux.
This is not a good fix in any way, because it modifies the filesystem of your host computer (other than in /home/relinux), which was a strict non-goal of relinux. However, I'm hoping it should work, at least temporarily :)
If it doesn't work, try replacing the emptyfile line with:
cat << EOF > /run/resolvconf /resolv. conf
nameserver 8.8.8.8
nameserver 8.8.4.4
EOF
I'm very sorry, I had entirely forgotten about this bug report. Let me know if this works! :)
A better fix would be to copy /run to dummysys, and modify run/resolvconf/ resolv. conf there, then add it to stage 1 of filesystem.squashfs (and exclude it from stage 2). This will probably be what I will do for relinux (if this works).