Changeset 343
- Timestamp:
- Mar 14, 2007 12:39:34 PM (6 years ago)
- Location:
- trunk/debirf
- Files:
-
- 2 edited
-
etc/debirf/debirf.conf (modified) (1 diff)
-
usr/sbin/make-debirf (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/debirf/etc/debirf/debirf.conf
r328 r343 3 3 4 4 # label for debirf system (for hostname and initrd) 5 DEBIRF_LABEL=${DEBIRF_LABEL:-debirf} 5 #DEBIRF_LABEL="debirf 6 6 7 7 # where to build the debirf 8 DEBIRF_PATH=${DEBIRF_PATH:-"/var/lib/debirf"} 8 #DEBIRF_PATH="/var/lib/debirf" 9 9 10 10 # the debirf root, used by plugins 11 DEBIRF_ROOT=${DEBIRF_ROOT:-"$DEBIRF_PATH/root"} 11 #DEBIRF_ROOT="$DEBIRF_PATH/root" 12 12 13 13 # the plugins directory 14 DEBIRF_PLUGINS=${DEBIRF_PLUGINS:-"/usr/share/debirf/plugins"} 14 #DEBIRF_PLUGINS="/usr/share/debirf/plugins" 15 15 16 16 # debirf boot method 17 DEBIRF_METHOD=${DEBIRF_METHOD:-stupid_simple} 17 #DEBIRF_METHOD="stupid_simple" 18 18 19 19 # Debian mirror 20 # DEBIRF_MIRROR="http://ftp.debian.org/debian" 21 DEBIRF_MIRROR=${DEBIRF_MIRROR:-"http://mirrors.kernel.org/debian"} 20 #DEBIRF_MIRROR="http://mirrors.kernel.org/debian" 22 21 23 22 # what distribution should debirf be built from? 24 DEBIRF_DISTRO=${DEBIRF_DISTRO:-etch} 23 #DEBIRF_DISTRO="etch" -
trunk/debirf/usr/sbin/make-debirf
r328 r343 3 3 # DEBIRF creation script. You must pass a kernel .deb as the first argument. 4 4 5 ############################################################### 6 ### VARIABLES 7 5 8 CMD=$(basename $0) 6 CMD_PATH=$(dirname $0)7 9 8 10 DEBIRF_CONF=${DEBIRF_CONF:-"/etc/debirf/debirf.conf"} 11 [ -f "$DEBIRF_CONF" ] && source "$DEBIRF_CONF" 12 13 ### defaults 14 # debirf label 15 DEBIRF_LABEL=${DEBIRF_LABEL:-"debirf"} 16 # where to build the debirf 17 DEBIRF_PATH=${DEBIRF_PATH:-"/var/lib/debirf"} 18 # the debirf root, used by plugins 19 DEBIRF_ROOT=${DEBIRF_ROOT:-"$DEBIRF_PATH/root"} 20 # the plugins directory 21 DEBIRF_PLUGINS=${DEBIRF_PLUGINS:-"/usr/share/debirf/plugins"} 22 # debirf boot method 23 DEBIRF_METHOD=${DEBIRF_METHOD:-"stupid_simple"} 24 # Debian mirror 25 DEBIRF_MIRROR=${DEBIRF_MIRROR:-"http://mirrors.kernel.org/debian"} 26 # what distribution should debirf be built from? 27 DEBIRF_DISTRO=${DEBIRF_DISTRO:-"etch"} 9 28 10 29 # set locale default … … 16 35 ### FUNCTIONS 17 36 18 failure(){ 37 usage() { 38 cat <<EOF 39 Usage: $CMD kernel-image 40 41 Creat a debirf initramfs. 42 43 Default config file: /etc/debirf/debirf.conf 44 All config variables are bash shell variables. 45 Specify alternate config file with "DEBIRF_CONF=". 46 EOF 47 } 48 49 failure() { 19 50 echo "$1" >&2 20 51 exit ${2:-'1'} … … 110 141 ### MAIN 111 142 112 # some checks113 [ -f "$DEBIRF_CONF" ] || failure "$DEBIRF_CONF config file not found."114 source "$DEBIRF_CONF"115 116 143 # check specified kernel package exists, and determine kernel name 117 if [ "$1" ]; then 118 DEBIRF_KERNEL_PACKAGE="$1" 119 [ -f "$DEBIRF_KERNEL_PACKAGE" ] || failure "Specified kernel package $DEBIRF_KERNEL_PACKAGE not found." 144 DEBIRF_KERNEL_PACKAGE="$1" 145 if [ ! -f "$DEBIRF_KERNEL_PACKAGE" ] ; then 146 echo "Specified kernel package $DEBIRF_KERNEL_PACKAGE not found." 147 echo 148 usage 149 exit 1 120 150 fi 121 151 … … 174 204 175 205 # final output 176 KERNEL="$DEBIRF_PATH/vmlinu"* 206 KERNEL="$DEBIRF_PATH/vmlinu"*"$KERNAVAIL" 177 207 if [ "$KERNEL" ] ; then 178 208 msg "kernel: $KERNEL"
Note: See TracChangeset
for help on using the changeset viewer.

