Use true|false instead of y|n for environment variables
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 12 Mar 2018 22:10:40 +0000 (22:10 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 12 Mar 2018 22:36:58 +0000 (22:36 +0000)
Commit 97c0e08bd0f00264eb3c2c5896a28e25a89d9f6f changed from yes|no to
true|false. Maintain this consistency and change newly added
environment variables.

backend/initramfs-tools/live.hook
manpages/en/live-boot.7

index 0e75e4d..5970e7d 100755 (executable)
@@ -53,7 +53,7 @@ do
 done
 
 # udev dependencies
-if [ "${MINIMAL:-}" != "y" ]
+if [ "${MINIMAL:-}" != "true" ] &&  [ "${MINIMAL:-}" != "yes" ]
 then
        for FILE in /lib/udev/*_id
        do
@@ -61,7 +61,8 @@ then
        done
 fi
 
-if [ -e /lib/udev/rules.d/60-cdrom_id.rules ] && [ "${DISABLE_CDROM:-}" != "y" ]
+if [ -e /lib/udev/rules.d/60-cdrom_id.rules ] && [ "${DISABLE_CDROM:-}" != "true" ] && \
+       [ "${DISABLE_CDROM:-}" != "yes" ]
 then
        mkdir -p "${DESTDIR}/lib/udev/rules.d"
        cp -p /lib/udev/rules.d/60-cdrom_id.rules "${DESTDIR}/lib/udev/rules.d"
@@ -106,7 +107,7 @@ manual_add_modules hfsplus
 # Filesystem: jffs2
 manual_add_modules jffs2
 
-if [ -x /usr/bin/rsync ] && [ "${MINIMAL:-}" != "y" ]
+if [ -x /usr/bin/rsync ] && [ "${MINIMAL:-}" != "true" ] && [ "${MINIMAL:-}" != "yes" ]
 then
        copy_exec /usr/bin/rsync /bin
 fi
@@ -123,7 +124,7 @@ manual_add_modules aufs
 manual_add_modules overlay
 
 # Filesystem: vfat
-if [ "${DISABLE_FAT:-}" != "y" ]
+if [ "${DISABLE_FAT:-}" != "true" ] &&  [ "${DISABLE_FAT:-}" != "yes" ]
 then
        manual_add_modules nls_cp437
        manual_add_modules nls_iso8859-1
@@ -133,14 +134,14 @@ then
 fi
 
 # Filesystem: ntfs
-if [ "${DISABLE_NTFS:-}" != "y" ]
+if [ "${DISABLE_NTFS:-}" != "true" ] && [ "${DISABLE_NTFS:-}" != "yes" ]
 then
        manual_add_modules ntfs
 fi
 
 [ "${QUIET}" ] || echo -n " devices"
 # Hardware: cdrom
-if [ "${DISABLE_CDROM:-}" != "y" ]
+if [ "${DISABLE_CDROM:-}" != "true" ] && [ "${DISABLE_CDROM:-}" != "yes" ]
 then
        manual_add_modules ide-cd
        manual_add_modules ide-generic
@@ -150,7 +151,7 @@ then
 fi
 
 # Hardware: usb
-if [ "${DISABLE_USB:-}" != "y" ]
+if [ "${DISABLE_USB:-}" != "true" ] && [ "${DISABLE_USB:-}" != "yes" ]
 then
        manual_add_modules sd_mod
 fi
@@ -198,7 +199,7 @@ then
 fi
 
 # FUSE kernel module
-if [ "${DISABLE_FUSE:-n}" != "y" ]
+if [ "${DISABLE_FUSE:-n}" != "true" ] && [ "${DISABLE_FUSE:-n}" != "yes" ]
 then
        manual_add_modules fuse
 
index d49f578..b29143a 100644 (file)
@@ -27,27 +27,27 @@ In addition, there are some more boot parameters to influence the behaviour, see
 These environment variables can only be set in the configuration files:
 
 .TP
-\fBDISABLE_CDROM\fR=[\fIy\fR|\fIn\fR]
+\fBDISABLE_CDROM\fR=[\fItrue\fR|\fIfalse\fR]
 Disable support for booting from CD-ROMs.  If set to '\fIy\fR' mkinitramfs will build an initramfs without the kernel modules for reading CD-ROMs.
 
 .TP
-\fBDISABLE_FAT\fR=[\fIy\fR|\fIn\fR]
+\fBDISABLE_FAT\fR=[\fItrue\fR|\fIfalse\fR]
 Disable support for booting from FAT file systems.  If set to '\fIy\fR' mkinitramfs will build an initramfs without the kernel module vfat and some nls_* modules.
 
 .TP
-\fBDISABLE_FUSE\fR=[\fIy\fR|\fIn\fR]
+\fBDISABLE_FUSE\fR=[\fItrue\fR|\fIfalse\fR]
 Disable support for booting from FUSE-based file systems.  If set to '\fIy\fR' mkinitramfs will build an initramfs without the kernel module fuse and file systems that depend on it (like curlftpfs and httpfs2).
 
 .TP
-\fBDISABLE_NTFS\fR=[\fIy\fR|\fIn\fR]
+\fBDISABLE_NTFS\fR=[\fItrue\fR|\fIfalse\fR]
 Disable support for booting from NTFS file systems.  If set to '\fIy\fR' mkinitramfs will build an initramfs without the kernel module ntfs.
 
 .TP
-\fBDISABLE_USB\fR=[\fIy\fR|\fIn\fR]
+\fBDISABLE_USB\fR=[\fItrue\fR|\fIfalse\fR]
 Disable support for booting from USB devices.  If set to '\fIy\fR' mkinitramfs will build an initramfs without the kernel module sd_mod.
 
 .TP
-\fBMINIMAL\fR=[\fIy\fR|\fIn\fR]
+\fBMINIMAL\fR=[\fItrue\fR|\fIfalse\fR]
 Build a minimal initramfs.  If set to '\fIy\fR' mkinitramfs will build an initramfs without some udev scripts and without rsync.
 
 .TP