summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/bin/hwautocfg
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-03-09 23:02:40 +0100
committerDirk von Suchodoletz2006-03-09 23:02:40 +0100
commitd442db2b6964f7c1c6b042f6c229911f47f8fcaa (patch)
tree5d2cfb32c7de17ba119567e6493f8d9ecd531420 /initrd/initrd-stuff/bin/hwautocfg
parenterste schritte bei vmware-prep (diff)
downloadcore-d442db2b6964f7c1c6b042f6c229911f47f8fcaa.tar.gz
core-d442db2b6964f7c1c6b042f6c229911f47f8fcaa.tar.xz
core-d442db2b6964f7c1c6b042f6c229911f47f8fcaa.zip
comments, bugfix.
git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@103 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/bin/hwautocfg')
-rwxr-xr-xinitrd/initrd-stuff/bin/hwautocfg8
1 files changed, 5 insertions, 3 deletions
diff --git a/initrd/initrd-stuff/bin/hwautocfg b/initrd/initrd-stuff/bin/hwautocfg
index 22393e16..9ce5cd75 100755
--- a/initrd/initrd-stuff/bin/hwautocfg
+++ b/initrd/initrd-stuff/bin/hwautocfg
@@ -10,7 +10,7 @@
#
# Copyright: (c) 2003 - 2006 - RZ Universitaet Freiburg
#
-# Version: 0.3.1d
+# Version: 0.3.1e
# local functions used within hwautocfg
displaysetup () {
@@ -426,8 +426,8 @@ waitfor /tmp/fscmpl 40000
# postpone some commands into normal bootup environment
echo -e "\t# entry added by $0: $date" \
>>/mnt/etc/${D_INITDIR}/boot.ld
-# cdrom/dvd und plattenkonfig. ergaenzen. Module sind hier geladen und
-# devices sind klar
+# get idea of availabe harddisk partitions, put swap partitions into
+# (/mnt)/etc/fstab and format and mount partitions of type 44 (unknown)
for hd in $(cat /tmp/hwsetup.info|sed -n -e '/HD$/,/device:/p'| \
sed -n -e '/device:/p' | sed -e 's/device: //') ; do
fdisk -l /dev/$hd| sed -n "/^\/dev\//p" > /tmp/hd_part
@@ -438,6 +438,7 @@ for hd in $(cat /tmp/hwsetup.info|sed -n -e '/HD$/,/device:/p'| \
# we use special non assigned partition type for harddisk scratch space
for hdpartnr in $(cat /tmp/hd_part | \
sed -n -e "/ 44 /p"|sed -e "s/[[:space:]].*//") ; do
+ # ugly message from ext2 mount :-(
( mkfs.ext2 -q $hdpartnr; mount -n $hdpartnr /mnt/tmp; \
echo "finished" > /tmp/tmpready ) &
echo -e "$hdpartnr\t/tmp\t\text2\t\tdefaults\t 0 0" >> /mnt/etc/fstab
@@ -445,6 +446,7 @@ for hd in $(cat /tmp/hwsetup.info|sed -n -e '/HD$/,/device:/p'| \
break
done
done
+# determine if tmp preparation should wait for format/mount or not
[ -z "$part44" ] && echo "finished" > /tmp/tmpready
# run localizator and configure keyboard and console fonts