blob: 63aa7c7fda3780529a9448705ba16201b3aeb2db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
mount -t proc none /proc
mount -t sysfs none /sys
echo -e "\nBoot took $(cut -d' ' -f1 /proc/uptime) seconds\n"
mount -t devtmpfs none /dev
mount -t devpts none /dev/pts
/sbin/mdev -s
# Start the network interface
/sbin/ifconfig eth0 up
/sbin/dhclient eth0
# 挂载共享文件夹
mkdir -p /mnt/test
mount -t 9p -o trans=virtio,version=9p2000.L test /mnt/test
exec /sbin/init
exec /bin/bash
|