X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F30-fstab;h=c316ec6ec572291d23e5e842aa90d379a2ca4e0c;hp=80f58d9d60233a7cabca3c59a9ffc06698fa3cc7;hb=ef51d0c8f7f9fcfa8faf0fa800b4a865517666a2;hpb=ff079cd77f0e36d5d754b800a75f1e011769e8ec diff --git a/etc/grml/fai/config/scripts/GRMLBASE/30-fstab b/etc/grml/fai/config/scripts/GRMLBASE/30-fstab index 80f58d9..c316ec6 100755 --- a/etc/grml/fai/config/scripts/GRMLBASE/30-fstab +++ b/etc/grml/fai/config/scripts/GRMLBASE/30-fstab @@ -1,24 +1,17 @@ -#!/bin/sh -# Filename: /etc/grml/fai/config/scripts/GRMLBASE/30-fstab +#!/bin/bash +# Filename: ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/30-fstab # Purpose: create initial /etc/fstab for use on live-system # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Sun Sep 16 23:09:08 CEST 2007 [mika] ################################################################################ set -u set -e +. "$GRML_LIVE_CONFIG" -USERNAME='' -[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf -[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local -[ -n "$USERNAME" ] || USERNAME=grml - -if [ -r /etc/grml/fai/files/etc/fstab ] ; then - cp /etc/grml/fai/files/etc/fstab $target/etc/fstab - sed -i "s/uid=USERNAME,gid=USERNAME/uid=$USERNAME,gid=$USERNAME/" $target/etc/fstab -fi +fcopy -v /etc/fstab +sed -i "s/uid=USERNAME,gid=USERNAME/uid=$USERNAME,gid=$USERNAME/" $target/etc/fstab ## END OF FILE ################################################################# -# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3 +# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2