/
updatebase.GRMLBASE
executable file
·30 lines (25 loc) · 1.09 KB
/
updatebase.GRMLBASE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
# Filename: /etc/grml/fai/config/hooks/updatebase.GRMLBASE
# Purpose: skip task updatebase of FAI when running softupdate
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2 or any later version.
################################################################################
if [ "$FAI_ACTION" = "softupdate" ] ; then
## we want to use our own sources.list:
# skiptask updatebase
## make sure we don't start any daemons - removed
## later on via /etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot
# if ! [ -r $target/usr/sbin/policy-rc.d ] ; then
# cat > $target/usr/sbin/policy-rc.d << EOF
##!/bin/sh
## FAI_ACTION=updatebase
#exit 101
#EOF
# chmod 755 $target/usr/sbin/policy-rc.d
# fi
# skip the task if we want to build a new ISO only:
[ -n "$BUILD_ONLY" ] && skiptask instsoft || /bin/true
fi
## END OF FILE #################################################################
# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3