diff options
author | Dirk von Suchodoletz | 2009-09-10 17:07:20 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2009-09-10 17:07:20 +0200 |
commit | 9ecd7e9591b83e09b75025dd663a07127a672ba3 (patch) | |
tree | 1f6cea4a548925ec82a54d70fdd2f282011df084 /initramfs/stage3-stuff/bin/servconfig | |
parent | Plugin to include pvs stuff more formally (do not use it yet!) ... (diff) | |
download | core-9ecd7e9591b83e09b75025dd663a07127a672ba3.tar.gz core-9ecd7e9591b83e09b75025dd663a07127a672ba3.tar.xz core-9ecd7e9591b83e09b75025dd663a07127a672ba3.zip |
Fix, should allow "/" in automnt_dir variable. Fixing call of ntpd for
Scientific Linux.
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@3149 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/stage3-stuff/bin/servconfig')
-rwxr-xr-x | initramfs/stage3-stuff/bin/servconfig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/initramfs/stage3-stuff/bin/servconfig b/initramfs/stage3-stuff/bin/servconfig index dcadc70a..c88c58ce 100755 --- a/initramfs/stage3-stuff/bin/servconfig +++ b/initramfs/stage3-stuff/bin/servconfig @@ -187,12 +187,13 @@ auto.master." >/mnt/etc/auto.misc strinstr "/" ${automnt_dir} && error "$scfg_erratpld" nonfatal amserv=$(uri_token $automnt_src server) ampath=$(uri_token $automnt_src path) - echo -e "/${automnt_dir}\t/etc/auto.${automnt_dir}\n" \ + amdirn=$(echo ${automnt_dir}|sed "s,/,_,g") + echo -e "/${automnt_dir}\t/etc/auto.${amdirn}\n" \ >> /mnt/etc/auto.master - echo -e "# /etc/auto.${automnt_dir} created by $0:\n" \ + echo -e "# /etc/auto.${amdirn} created by $0:\n" \ > /mnt/etc/auto.${automnt_dir} echo -e "*\t-rsize=32768,wsize=32768,rw\t${amserv}:${ampath}/&" \ - >> /mnt/etc/auto.${automnt_dir} + >> /mnt/etc/auto.${amdirn} # no tempfs needed if automounter operates on /home [ "${automnt_dir}" = "home" ] && umount -t tmpfs /mnt/home 2>/dev/null # portmapper is needed for remote NFS sources and local nfs directories |