mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-26 21:11:54 +01:00
Move clearing resolv.conf and interfaces to last, so that they don't
interfere with installing additional pacakages using --pkglist2. Review URL: http://chromereview.prom.corp.google.com/1173089 git-svn-id: svn://chrome-svn/chromeos/trunk@70 06c00378-0e64-4dae-be16-12b19f9950a1
This commit is contained in:
parent
038364b490
commit
c9c9d5f2fa
@ -127,17 +127,6 @@ EOF
|
||||
update-initramfs -u
|
||||
fi
|
||||
|
||||
cat <<EOF > /etc/network/interfaces
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
EOF
|
||||
|
||||
cat <<EOF > /etc/resolv.conf
|
||||
# Use the connman dns proxy.
|
||||
nameserver 127.0.0.1
|
||||
EOF
|
||||
chmod a-wx /etc/resolv.conf
|
||||
|
||||
# If we don't create generic udev rules, then udev will try to save the
|
||||
# history of various devices (i.e. always associate a given device and MAC
|
||||
# address with the same wlan number). As we use a keyfob across different
|
||||
@ -438,3 +427,17 @@ EOF
|
||||
# List all packages still installed post-pruning
|
||||
sudo sh -c "/trunk/src/scripts/list_installed_packages.sh \
|
||||
> /etc/package_list_pruned.txt"
|
||||
|
||||
# Clear network settings. This must be done last, since it prevents
|
||||
# any subseuqent steps from accessing the network.
|
||||
cat <<EOF > /etc/network/interfaces
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
EOF
|
||||
|
||||
cat <<EOF > /etc/resolv.conf
|
||||
# Use the connman dns proxy.
|
||||
nameserver 127.0.0.1
|
||||
EOF
|
||||
chmod a-wx /etc/resolv.conf
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user