Expose (selected) config vars to fai scripts
[grml-live.git] / etc / grml / fai / config / scripts / GRMLBASE / 30-fstab
1 #!/bin/bash
2 # Filename:      ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/30-fstab
3 # Purpose:       create initial /etc/fstab for use on live-system
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2 or any later version.
7 ################################################################################
8
9 set -u
10 set -e
11 . "$GRML_LIVE_CONFIG"
12
13 fcopy -v /etc/fstab
14 sed -i "s/uid=USERNAME,gid=USERNAME/uid=$USERNAME,gid=$USERNAME/" $target/etc/fstab
15
16 ## END OF FILE #################################################################
17 # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2