Changeset 775 for trunk/debirf/fs/usr/bin/make-debirf
- Timestamp:
- Dec 10, 2007 5:58:21 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/debirf/fs/usr/bin/make-debirf (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/debirf/fs/usr/bin/make-debirf
r772 r775 29 29 usage() { 30 30 cat <<EOF 31 Usage: $CMD [options] profile kernel31 Usage: $CMD [options] profile [kernel] 32 32 Create a debirf system. 'profile' is a path to a debirf profile 33 directory, and 'kernel' is a kernel-img .deb, or a kernel package name. 33 directory. If a kernel is specified, it will override the kernel 34 specified in the profile debirf.conf. 34 35 35 36 options: … … 41 42 -s|--skip skip debootstrap step if old root exists 42 43 -i|--initrd-only do not create root, just create initramfs 44 EOF 45 } 46 47 usage_profile() { 48 cat <<EOF 49 It looks like your profile is not correctly formed. You should begin 50 by copying and modifying one of the example debirf profiles. 51 On Debian, you should run: 52 cp -r /usr/share/doc/debirf/example-profiles/<profile-name> . 43 53 EOF 44 54 } … … 237 247 fi 238 248 DEBIRF_PROFILE="$1" 239 DEBIRF_KERNEL_PACKAGE="$2" 249 if [ "$2" ] ; then 250 DEBIRF_KERNEL_PACKAGE="$2" 251 fi 240 252 break 241 253 ;; … … 252 264 DEBIRF_PLUGINS="$DEBIRF_PROFILE/plugins" 253 265 else 254 failure "$DEBIRF_PROFILE not found. Create a new profile with the '-p' option." 266 echo "$DEBIRF_PROFILE not found." 267 usage_profile 268 exit 1 255 269 fi 256 270 … … 259 273 source "$DEBIRF_CONF" 260 274 else 261 failure "$DEBIRF_CONF not found." 275 echo "$DEBIRF_CONF not found." 276 usage_profile 277 exit 1 262 278 fi 263 279 264 280 # check plugins directory 265 281 if [ ! -d "$DEBIRF_PLUGINS" ] ; then 266 failure "$DEBIRF_PLUGINS does not exist." 282 echo "$DEBIRF_PLUGINS does not exist." 283 usage_profile 284 exit 1 267 285 fi 268 286 if [ $(ls "$DEBIRF_PLUGINS" -1 | wc -l) = 0 ] ; then 269 failure "$DEBIRF_PLUGINS is empty." 287 echo "$DEBIRF_PLUGINS is empty." 288 usage_profile 289 exit 1 270 290 fi 271 291 … … 307 327 failure "Specified kernel package '$DEBIRF_KERNEL_PACKAGE' not found." 308 328 fi 329 else 330 echo "Using deb kernel package '$DEBIRF_KERNEL_PACKAGE'." 309 331 fi 310 332
Note: See TracChangeset
for help on using the changeset viewer.

