We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c076ee commit 288f3bdCopy full SHA for 288f3bd
1 file changed
tools/build_ramdisk.sh
@@ -45,7 +45,7 @@ if [ ! -d $CHROOTCACHE/natty-dev ]; then
45
chroot $CHROOTCACHE/natty-dev groupadd libvirtd
46
chroot $CHROOTCACHE/natty-dev useradd stack -s /bin/bash -d $DEST -G libvirtd
47
mkdir -p $CHROOTCACHE/natty-dev/$DEST
48
- chown stack $CHROOTCACHE/natty-dev/$DEST
+ chroot $CHROOTCACHE/natty-dev chown stack $DEST
49
50
# a simple password - pass
51
echo stack:pass | chroot $CHROOTCACHE/natty-dev chpasswd
@@ -115,6 +115,10 @@ auto eth0
115
iface eth0 inet dhcp
116
EOF
117
118
+# Set hostname
119
+echo "ramstack" >$CHROOTCACHE/natty-stack/etc/hostname
120
+echo "127.0.0.1 localhost ramstack" >$CHROOTCACHE/natty-stack/etc/hosts
121
+
122
# Configure the runner
123
RUN_SH=$CHROOTCACHE/natty-stack/$DEST/run.sh
124
cat > $RUN_SH <<EOF
0 commit comments