forked from mirrors/nixpkgs
* Ignore failure to set up networking.
* Unmount, don't remount / on halt. svn path=/nixu/trunk/; revision=1169
This commit is contained in:
parent
91a5fe9eb0
commit
656ea85e60
|
@ -1,5 +1,7 @@
|
|||
#! @bash@/bin/sh -e
|
||||
|
||||
set -e
|
||||
|
||||
. @out@/bin/env.sh
|
||||
|
||||
echo "--- Nix ---"
|
||||
|
@ -23,9 +25,9 @@ echo "enabling loopback interface..."
|
|||
ifconfig lo 127.0.0.1
|
||||
|
||||
echo "enabling ethernet interface..."
|
||||
ifconfig eth0 $(cat /etc/networking/local-ip) up
|
||||
ifconfig eth0 $(cat /etc/networking/local-ip) up || true
|
||||
|
||||
echo "setting up routing table..."
|
||||
route add default gw $(cat /etc/networking/gateway-ip)
|
||||
route add default gw $(cat /etc/networking/gateway-ip) || true
|
||||
|
||||
echo "boot done."
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
. @out@/bin/env.sh
|
||||
|
||||
echo "remounting / read-only..."
|
||||
mount -n -o remount,rw /dev/root / || echo "(failed)" # ignore errors
|
||||
echo "unmount file systems..."
|
||||
umount -avt noproc,nonfs,nosmbfs,nodevfs || echo "(failed)" # ignore errors
|
||||
|
||||
echo "syncing..."
|
||||
sync || echo "(failed)" # ignore errors
|
||||
|
|
Loading…
Reference in a new issue