Add loopback network device and localhost entry to /etc/hosts for VM tests.
This commit is contained in:
parent
6726776c74
commit
51a22a8f8a
@ -99,6 +99,8 @@ rec {
|
|||||||
mount -t tmpfs none /dev
|
mount -t tmpfs none /dev
|
||||||
${createDeviceNodes "/dev"}
|
${createDeviceNodes "/dev"}
|
||||||
|
|
||||||
|
ifconfig lo up
|
||||||
|
|
||||||
mkdir /fs
|
mkdir /fs
|
||||||
|
|
||||||
if test -z "$mountDisk"; then
|
if test -z "$mountDisk"; then
|
||||||
@ -129,6 +131,7 @@ rec {
|
|||||||
|
|
||||||
mkdir -p /fs/etc
|
mkdir -p /fs/etc
|
||||||
ln -sf /proc/mounts /fs/etc/mtab
|
ln -sf /proc/mounts /fs/etc/mtab
|
||||||
|
echo "127.0.0.1 localhost" > /fs/etc/hosts
|
||||||
|
|
||||||
echo "Now running: $command"
|
echo "Now running: $command"
|
||||||
test -n "$command"
|
test -n "$command"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user