1.1 --- a/README.txt Mon Apr 22 23:00:48 2013 +0200
1.2 +++ b/README.txt Wed Apr 24 00:42:39 2013 +0200
1.3 @@ -377,7 +377,9 @@
1.4 umount installer
1.5
1.6 This assumes that initrd.gz is found at the top level of the installation
1.7 -media's filesystem.
1.8 +media's filesystem. It may also be found in a directory below the top level
1.9 +such as install.386 (taking the i386 architecture as an example) on Debian
1.10 +installation media.
1.11
1.12 The UML instance is then booted as follows:
1.13
1.14 @@ -387,6 +389,22 @@
1.15 instance, not merely as partitions, and so installers may ask you if you would
1.16 like to partition these devices still further.
1.17
1.18 +The installation media will appear as /dev/ubdc and this may need to be
1.19 +specified manually when an installer is attempting to read the installation
1.20 +media from what it thinks is a CD-ROM drive.
1.21 +
1.22 +Since the installer will most likely be designed for use on real hardware,
1.23 +various operations will be performed that will fail in a UML environment. Of
1.24 +particular importance is that of networking, and it may be necessary to
1.25 +configure networking manually during any installation process, skip any update
1.26 +steps requiring the network, and to perform additional configuration and
1.27 +updates after the installation has been carried out.
1.28 +
1.29 +Exiting an installer may be problematic since the installer may assume that
1.30 +the installation media has been ejected from the system when it is, in fact,
1.31 +still available after a reboot. To shut down the UML instance, obtain a shell
1.32 +from the installer program and issue the "halt" command.
1.33 +
1.34 Once an installation has been performed using installation media, it should be
1.35 possible to omit the --initrd options when running uml-do on subsequent
1.36 occasions.
2.1 --- a/uml-make-image Mon Apr 22 23:00:48 2013 +0200
2.2 +++ b/uml-make-image Wed Apr 24 00:42:39 2013 +0200
2.3 @@ -54,11 +54,24 @@
2.4 fi
2.5
2.6 echo "Making the filesystem with size ${IMAGESIZE}GB..."
2.7 -dd if=/dev/zero of=$IMAGE bs=1024 count=1 seek=$(($IMAGESIZE*1024*1024-1024))
2.8 -mkfs.ext3 $IMAGE
2.9 +if dd if=/dev/zero of=$IMAGE bs=1024 count=1 seek=$(($IMAGESIZE*1024*1024-1024)) ; then
2.10 + mkfs.ext3 $IMAGE
2.11 +else
2.12 + cat 1>&2 <<EOF
2.13 +Unable to create an image file for the root partition.
2.14 +See the error messages above for more information.
2.15 +EOF
2.16 + exit 1
2.17 +fi
2.18
2.19 echo "Making the swap file with size ${SWAPSIZE}MB..."
2.20 -dd if=/dev/zero of=$SWAPIMAGE bs=1M count=$SWAPSIZE
2.21 +if ! dd if=/dev/zero of=$SWAPIMAGE bs=1M count=$SWAPSIZE ; then
2.22 + cat 1>&2 <<EOF
2.23 +Unable to create an image file for the swap partition.
2.24 +See the error messages above for more information.
2.25 +EOF
2.26 + exit 1
2.27 +fi
2.28
2.29 # Image population activities.
2.30