3 x
="$(readlink -f "$BASH_SOURCE")"; source "${x%/*}/bash-trace"
8 Usage: ${0##*/} [-h|--help] [mk-basefile_args]
9 Wrap fai's mk-basefile so output dir is $BASEFILE_DIR if it exists.
11 And fix things for trisquel. mk-basefile has a trisquel mirror added.
13 fai-project maintains ubuntu and debian basefiles, but it doesn't update
14 them often. Better to build our all our own.
17 Args I've used before:
28 -h|--help Print help and exit.
30 Note: Uses GNU getopt options parsing style.
35 $script_dir/fai
/config
/basefiles
/mk-basefile
-h
45 if [[ $EUID != 0 ]]; then
49 cd /usr
/share
/debootstrap
/scripts
50 for d
in belenos flidas
; do
51 if [[ ! -L $d && ! -e $d ]]; then
56 if [[ ! -L $d && ! -e $d ]]; then
57 $s ln -sf trisquel etiona
;
60 if [[ $BASEFILE_DIR ]]; then
64 if awk '$2 == "/tmp" && $4 ~ /nodev/' /proc
/mounts |
grep -q . ||
[[ $?
== 141 ]]; then
65 $s mount
-o remount
,dev
/tmp
67 $s $script_dir/fai
/config
/basefiles
/mk-basefile
"$@"