diff options
author | Dirk von Suchodoletz | 2006-03-24 00:43:32 +0100 |
---|---|---|
committer | Dirk von Suchodoletz | 2006-03-24 00:43:32 +0100 |
commit | 6784da20db046a83119d50885e0151cbe6cf5925 (patch) | |
tree | 0d6cfd13f6f19fcb1b61304dc0225f6c034a0834 /initrd/initrd-stuff/bin/hwautocfg | |
parent | installer: kernel autodetection (diff) | |
download | core-6784da20db046a83119d50885e0151cbe6cf5925.tar.gz core-6784da20db046a83119d50885e0151cbe6cf5925.tar.xz core-6784da20db046a83119d50885e0151cbe6cf5925.zip |
adding id 83 partitions to fstab, changes for temp directory
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@123 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/bin/hwautocfg')
-rwxr-xr-x | initrd/initrd-stuff/bin/hwautocfg | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/initrd/initrd-stuff/bin/hwautocfg b/initrd/initrd-stuff/bin/hwautocfg index b0c75dfd..8a4c5a9e 100755 --- a/initrd/initrd-stuff/bin/hwautocfg +++ b/initrd/initrd-stuff/bin/hwautocfg @@ -434,7 +434,14 @@ for hd in $(cat /tmp/hwsetup.info|sed -n -e '/HD$/,/device:/p'| \ echo -e "$hdpartnr\t/tmp\t\text2\t\tdefaults\t 0 0" >> /mnt/etc/fstab part44=yes break - done + done + # put detected linux partitions into /etc/fstab with "noauto" + for hdpartnr in $(cat /tmp/hd_part | \ + sed -n -e "/ 83 /p"|sed -e "s/[[:space:]].*//") ; do + mkdir -p /mnt/media/${hdpartnr#/dev/*} 2>/dev/null + echo -e "$hdpartnr\t/media/${hdpartnr#/dev/*}\tauto\t\tnoauto,\ +noexec\t 0 0" >> /mnt/etc/fstab + done done # determine if tmp preparation should wait for format/mount or not [ -z "$part44" ] && echo "finished" > /tmp/tmpready |