Adding option to disable md5sum generation.

This commit is contained in:
Daniel Baumann 2007-11-12 23:00:48 +01:00
parent 75196ecbd8
commit 02a9e71667
4 changed files with 24 additions and 1 deletions

View File

@ -498,6 +498,9 @@ Set_defaults ()
esac
fi
# Setting checksums
LH_CHECKSUMS="${LH_CHECKSUMS:-enabled}"
# Setting chroot option
LH_CHROOT_BUILD="${LH_CHROOT_BUILD:-enabled}"

View File

@ -33,6 +33,11 @@ Read_conffile config/source
Read_conffile "${LH_CONFIG}"
Set_defaults
if [ "${LH_CHECKSUMS}" != "enabled" ]
then
exit 0
fi
Echo_message "Begin creating binary md5sum.txt..."
# Requiring stage file

View File

@ -42,6 +42,7 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\
\t [--cache-indices enabled|disabled]\n\
\t [--cache-packages enabled|disabled]\n\
\t [--cache-stages STAGE|\"STAGES\"]\n\
\t [--checksums enabled|disabled]\n\
\t [--chroot-build enabled|disabled]\n\
\t [--chroot-filesystem ext2|ext3|squashfs|plain]\n\
\t [-c|--conffile FILE]\n\
@ -109,7 +110,7 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\
Local_arguments ()
{
ARGUMENTS="$(getopt --longoptions apt:,apt-ftp-proxy:,apt-http-proxy:,apt-pdiffs:,apt-pipeline:,apt-recommends:,apt-secure:,bootstrap:,cache:,cache-indices:,cache-packages:,cache-stages:,debconf-frontend:,debconf-nowarnings:,debconf-priority:,genisoimage:,initramfs:,fdisk:,losetup:,mode:,root-command:,use-fakeroot:,tasksel:,includes:,templates:,architecture:,bootstrap-config:,bootstrap-flavour:,bootstrap-keyring:,distribution:,mirror-bootstrap:,mirror-bootstrap-security:,mirror-binary:,mirror-binary-security:,sections:,chroot-filesystem:,union-filesystem:,exposed-root:,hooks:,interactive:,keyring-packages:,language:,linux-flavours:,linux-packages:,packages:,packages-lists:,tasks:,security:,symlinks:,sysvinit:,binary-images:,binary-indices:,bootappend-install:,bootappend-live:,bootloader:,chroot-build:,debian-installer:,debian-installer-daily:,encryption:,grub-splash:,hostname:,iso-application:,iso-preparer:,iso-publisher:,iso-volume:,memtest:,net-root-filesystem:,net-root-mountoptions:,net-root-path:,net-root-server:,net-cow-filesystem:,net-cow-mountoptions:,net-cow-path:,net-cow-server:,syslinux-splash:,syslinux-timeout:,syslinux-menu:,username:,source:,source-images:,breakpoints,conffile:,debug,force,help,quiet,usage,verbose,version --name=${PROGRAM} --options a:f:d:m:l:k:p:b:e:s:c:huv --shell sh -- "${@}")"
ARGUMENTS="$(getopt --longoptions apt:,apt-ftp-proxy:,apt-http-proxy:,apt-pdiffs:,apt-pipeline:,apt-recommends:,apt-secure:,bootstrap:,cache:,cache-indices:,cache-packages:,cache-stages:,debconf-frontend:,debconf-nowarnings:,debconf-priority:,genisoimage:,initramfs:,fdisk:,losetup:,mode:,root-command:,use-fakeroot:,tasksel:,includes:,templates:,architecture:,bootstrap-config:,bootstrap-flavour:,bootstrap-keyring:,distribution:,mirror-bootstrap:,mirror-bootstrap-security:,mirror-binary:,mirror-binary-security:,sections:,chroot-filesystem:,union-filesystem:,exposed-root:,hooks:,interactive:,keyring-packages:,language:,linux-flavours:,linux-packages:,packages:,packages-lists:,tasks:,security:,symlinks:,sysvinit:,binary-images:,binary-indices:,bootappend-install:,bootappend-live:,bootloader:,checksums:,chroot-build:,debian-installer:,debian-installer-daily:,encryption:,grub-splash:,hostname:,iso-application:,iso-preparer:,iso-publisher:,iso-volume:,memtest:,net-root-filesystem:,net-root-mountoptions:,net-root-path:,net-root-server:,net-cow-filesystem:,net-cow-mountoptions:,net-cow-path:,net-cow-server:,syslinux-splash:,syslinux-timeout:,syslinux-menu:,username:,source:,source-images:,breakpoints,conffile:,debug,force,help,quiet,usage,verbose,version --name=${PROGRAM} --options a:f:d:m:l:k:p:b:e:s:c:huv --shell sh -- "${@}")"
if [ "${?}" != "0" ]
then
@ -426,6 +427,11 @@ Local_arguments ()
shift 2
;;
--checksums)
LH_CHECKSUMS="${2}"
shift 2
;;
--chroot-build)
LH_CHROOT_BUILD="${2}"
shift 2
@ -919,6 +925,10 @@ LH_BOOTAPPEND_INSTALL="${LH_BOOTAPPEND_INSTALL}"
# (Default: ${LH_BOOTLOADER})
LH_BOOTLOADER="${LH_BOOTLOADER}"
# \$LH_CHECKSUMS: set checksums
# (Default: ${LH_CHECKSUMS})
LH_CHECKSUMS="${LH_CHECKSUMS}"
# \${LH_CHROOT_BUILD: control if we build binary images chrooted
# (Default: ${LH_CHROOT_BUILD})
# DO NEVER, *NEVER*, *N*E*V*E*R* SET THIS OPTION to disabled.

View File

@ -38,6 +38,11 @@ then
exit 0
fi
if [ "${LH_CHECKSUMS}" != "enabled" ]
then
exit 0
fi
Echo_message "Begin creating source md5sum.txt..."
# Requiring stage file