mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 18:42:15 +00:00
fe90fce5d1
svn path=/nixu/trunk/; revision=3661
40 lines
742 B
Bash
40 lines
742 B
Bash
#! @bash@/bin/sh -e
|
|
|
|
set -e
|
|
|
|
. @out@/bin/env.sh
|
|
|
|
echo "--- Nix ---"
|
|
|
|
echo "mounting /proc..."
|
|
mount -n -t proc none /proc
|
|
|
|
echo "mounting /sys..."
|
|
mount -n -t sysfs none /sys
|
|
|
|
echo "mounting /dev/pts..."
|
|
mount -n -t devpts none /dev/pts
|
|
|
|
#echo "checking /dev/root..."
|
|
#e2fsck -y /dev/root || test "$?" -le 1
|
|
|
|
echo "remounting / writable..."
|
|
mount -n -o remount,rw /dev/root /
|
|
|
|
echo "starting udev..."
|
|
@udev@/sbin/udevstart
|
|
|
|
echo "setting up hostname..."
|
|
hostname uml
|
|
|
|
echo "enabling loopback interface..."
|
|
ifconfig lo 127.0.0.1
|
|
|
|
echo "enabling ethernet interface..."
|
|
ifconfig eth0 $(cat /etc/networking/local-ip) up || true
|
|
|
|
echo "setting up routing table..."
|
|
route add default gw $(cat /etc/networking/gateway-ip) || true
|
|
|
|
echo "boot done."
|