Changeset 775
- Timestamp:
- Dec 10, 2007 5:58:21 PM (5 years ago)
- Location:
- trunk/debirf
- Files:
-
- 6 edited
-
debian/changelog (modified) (1 diff)
-
docs/example-profiles/minimal/debirf.conf (modified) (1 diff)
-
docs/example-profiles/rescue/debirf.conf (modified) (1 diff)
-
docs/example-profiles/xkiosk/debirf.conf (modified) (1 diff)
-
fs/usr/bin/make-debirf (modified) (6 diffs)
-
fs/usr/share/debirf/debirf.conf.defaults (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/debirf/debian/changelog
r770 r775 1 debirf (0.9) unstable; urgency=low 2 3 * added DEBIRF_KERNEL_PACKAGE to debirf.conf 4 * added more informative error message when profile is malformed. 5 6 -- Jameson Rollins <jrollins@fifthhorseman.net> Mon, 10 Dec 2007 17:52:43 -0500 7 1 8 debirf (0.8) unstable; urgency=low 2 9 -
trunk/debirf/docs/example-profiles/minimal/debirf.conf
r770 r775 18 18 #DEBIRF_DISTRO="lenny" 19 19 20 # kernel, either a package name, or a path to a .deb 21 # in either case, it must be a package or deb for a complete kernel, 22 # not a metapackage. 23 #DEBIRF_KERNEL_PACKAGE="linux-image-2.6.22-3-686" 24 20 25 # proxy 21 26 #export http_proxy=http://localhost:3128/ -
trunk/debirf/docs/example-profiles/rescue/debirf.conf
r770 r775 18 18 #DEBIRF_DISTRO="lenny" 19 19 20 # kernel, either a package name, or a path to a .deb 21 # in either case, it must be a package or deb for a complete kernel, 22 # not a metapackage. 23 #DEBIRF_KERNEL_PACKAGE="linux-image-2.6.22-3-686" 24 20 25 # proxy 21 26 #export http_proxy=http://localhost:3128/ -
trunk/debirf/docs/example-profiles/xkiosk/debirf.conf
r770 r775 18 18 #DEBIRF_DISTRO="lenny" 19 19 20 # kernel, either a package name, or a path to a .deb 21 # in either case, it must be a package or deb for a complete kernel, 22 # not a metapackage. 23 #DEBIRF_KERNEL_PACKAGE="linux-image-2.6.22-3-686" 24 20 25 # proxy 21 26 #export http_proxy=http://localhost:3128/ -
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 -
trunk/debirf/fs/usr/share/debirf/debirf.conf.defaults
r770 r775 18 18 # what distribution should debirf be built from? 19 19 DEBIRF_DISTRO=${DEBIRF_DISTRO:-"lenny"} 20 21 # kernel, either a package name, or a path to a .deb 22 # in either case, it must be a package or deb for a complete kernel, 23 # not a metapackage. 24 DEBIRF_KERNEL_PACKAGE=${DEBIRF_KERNEL_PACKAGE:-"linux-image-2.6.22-3-686"}
Note: See TracChangeset
for help on using the changeset viewer.

