From: Rick Farina Date: Sun, 30 Sep 2012 19:17:30 +0000 (+0200) Subject: Make e2fsprogs optional (and off by default) X-Git-Tag: v3.4.43~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=255c8e84983d5b0285651828938117ba1676802d;p=genkernel.git Make e2fsprogs optional (and off by default) --- diff --git a/doc/genkernel.8.txt b/doc/genkernel.8.txt index 9a96f32..912f899 100644 --- a/doc/genkernel.8.txt +++ b/doc/genkernel.8.txt @@ -263,6 +263,9 @@ INITIALIZATION *--*[*no-*]*dmraid*:: Includes or excludes DMRAID support. +*--*[*no-*]*e2fsprogs*:: + Includes or excludes e2fsprogs. + *--*[*no-*]*zfs*:: Includes or excludes ZFS support. diff --git a/gen_cmdline.sh b/gen_cmdline.sh index 938b1a5..a305201 100755 --- a/gen_cmdline.sh +++ b/gen_cmdline.sh @@ -91,6 +91,8 @@ longusage() { echo " --mdadm-config= Use file as mdadm.conf in initramfs" echo " --dmraid Include DMRAID support" echo " --no-dmraid Exclude DMRAID support" + echo " --e2fsprogs Include e2fsprogs" + echo " --no-e2fsprogs Exclude e2fsprogs" echo " --zfs Include ZFS support" echo " --no-zfs Exclude ZFS support" echo " --multipath Include Multipath support" @@ -306,6 +308,10 @@ parse_cmdline() { fi print_info 2 "CMD_DMRAID: ${CMD_DMRAID}" ;; + --e2fsprogs|--no-e2fsprogs) + CMD_E2FSPROGS=`parse_optbool "$*"` + print_info 2 "CMD_E2FSPROGS: ${CMD_E2FSPROGS}" + ;; --zfs|--no-zfs) CMD_ZFS=`parse_optbool "$*"` print_info 2 "CMD_ZFS: ${CMD_ZFS}" diff --git a/gen_determineargs.sh b/gen_determineargs.sh index 7f352f8..92a6458 100755 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -122,6 +122,7 @@ determine_real_args() { set_config_with_override BOOL GPG CMD_GPG set_config_with_override BOOL MDADM CMD_MDADM set_config_with_override STRING MDADM_CONFIG CMD_MDADM_CONFIG + set_config_with_override BOOL E2FSPROGS CMD_E2FSPROGS "no" set_config_with_override BOOL ZFS CMD_ZFS set_config_with_override BOOL MULTIPATH CMD_MULTIPATH set_config_with_override BOOL FIRMWARE CMD_FIRMWARE diff --git a/gen_initramfs.sh b/gen_initramfs.sh index ee21d2f..9d070f5 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -127,7 +127,7 @@ append_busybox() { rm -rf "${TEMP}/initramfs-busybox-temp" > /dev/null } -append_e2fstools(){ +append_e2fsprogs(){ if [ -d "${TEMP}"/initramfs-e2fsprogs-temp ] then rm -r "${TEMP}"/initramfs-e2fsprogs-temp @@ -758,7 +758,7 @@ create_initramfs() { append_data 'base_layout' append_data 'auxilary' "${BUSYBOX}" append_data 'busybox' "${BUSYBOX}" - append_data 'e2fstools' + isTrue "${CMD_E2FSPROGS}" && append_data 'e2fsprogs' append_data 'lvm' "${LVM}" append_data 'dmraid' "${DMRAID}" append_data 'iscsi' "${ISCSI}" diff --git a/genkernel.conf b/genkernel.conf index 5d93a66..af73931 100644 --- a/genkernel.conf +++ b/genkernel.conf @@ -87,6 +87,9 @@ USECOLOR="yes" # Add iSCSI support. #ISCSI="no" +# Add e2fsprogs support. +#E2FSPROGS="no" + # Include support for unionfs #UNIONFS="1"