initramfs-tools: update to 0.98.

update-initramfs: added two new flags -V and -B:
 -V: prints initramfs-tools version.
 -B: do not run grub-mkconfig.

--HG--
extra : convert_revision : 700fe54a0323ad7b8c34af85cfa7f52fe43ce63d
This commit is contained in:
Juan RP 2010-02-25 04:07:57 +01:00
parent d78588a13c
commit f85c07402c
3 changed files with 32 additions and 6 deletions

View file

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
INITRAMFS_TOOLS_VERSION=@VERSION@
STATEDIR=/var/lib/initramfs-tools STATEDIR=/var/lib/initramfs-tools
BOOTDIR=/boot BOOTDIR=/boot
CONF=/etc/initramfs-tools/update-initramfs.conf CONF=/etc/initramfs-tools/update-initramfs.conf
@ -23,7 +24,9 @@ Options:
-d Remove an existing initramfs -d Remove an existing initramfs
-t Take over a custom initramfs with this one -t Take over a custom initramfs with this one
-b Set alternate boot directory -b Set alternate boot directory
-B Do not update bootloader configuration file
-v Be verbose -v Be verbose
-V Show initramfs-tools version
-h This message -h This message
EOF EOF
@ -331,7 +334,7 @@ update()
generate_initramfs generate_initramfs
run_bootloader [ -n "${dogrub}" ] && run_bootloader
backup_booted_initramfs backup_booted_initramfs
} }
@ -380,11 +383,15 @@ verbose=0
yes=0 yes=0
# We default to takeover=1 in Ubuntu, but not Debian # We default to takeover=1 in Ubuntu, but not Debian
takeover=0 takeover=0
dogrub=1
## ##
while getopts "k:cudyvtb:h?" flag; do while getopts "k:cudyvtb:h?BV" flag; do
case "${flag}" in case "${flag}" in
B)
unset dogrub
;;
k) k)
version="${OPTARG}" version="${OPTARG}"
;; ;;
@ -413,6 +420,10 @@ while getopts "k:cudyvtb:h?" flag; do
exit 1 exit 1
fi fi
;; ;;
V)
echo "${INITRAMFS_TOOLS_VERSION}"
exit 0
;;
h|?) h|?)
usage usage
;; ;;

View file

@ -1,4 +1,4 @@
.TH UPDATE-INITRAMFS 8 "2008/12/19" "Linux" "update\-initramfs manual" .TH UPDATE-INITRAMFS 8 "2010/02/25" "Linux" "update\-initramfs manual"
.SH NAME .SH NAME
update\-initramfs \- generate an initramfs image update\-initramfs \- generate an initramfs image
@ -10,7 +10,9 @@ update\-initramfs \- generate an initramfs image
.IR version ] .IR version ]
.RB [ \-t ] .RB [ \-t ]
.RB [ \-v ] .RB [ \-v ]
.RB [ \-V ]
.RB [ \-b ] .RB [ \-b ]
.RB [ \-B ]
.RB [ \-h ] .RB [ \-h ]
.SH DESCRIPTION .SH DESCRIPTION
The The
@ -61,10 +63,19 @@ Allows to take over an custom initramfs with a newer one.
This option increases the amount of information you are given during This option increases the amount of information you are given during
the chosen action. the chosen action.
.TP
\fB \-V
Prints the current initramfs-tools version.
.TP .TP
\fB \-b \fB \-b
Set an different bootdir for the image creation. Set an different bootdir for the image creation.
.TP
\fB \-B
Do not update the boot configuration file (grub.cfg for grub2) after
building successfully the initramfs.
.TP .TP
\fB \-h \fB \-h
Print a short help page describing the available options in Print a short help page describing the available options in
@ -77,7 +88,6 @@ Update the initramfs of the newest kernel:
.PP .PP
.B update\-initramfs -u .B update\-initramfs -u
Create the initramfs for a specific kernel: Create the initramfs for a specific kernel:
.PP .PP
@ -87,7 +97,11 @@ Create the initramfs for a specific kernel:
/etc/initramfs-tools/update-initramfs.conf /etc/initramfs-tools/update-initramfs.conf
.SH AUTHOR .SH AUTHOR
The initramfs-tools are written by Maximilian Attems <maks@debian.org>, The initramfs-tools available in XBPS are maintained by
Juan Romero Pardines <xtraeme@gmail.com>, they diverged substantially
from the original implementation comming from Debian.
The initramfs-tools from Debian are written by Maximilian Attems <maks@debian.org>,
Jeff Bailey <jbailey@raspberryginger.com> and numerous others. Jeff Bailey <jbailey@raspberryginger.com> and numerous others.
.SH SEE ALSO .SH SEE ALSO

View file

@ -1,6 +1,6 @@
# Template file for 'initramfs-tools' # Template file for 'initramfs-tools'
pkgname=initramfs-tools pkgname=initramfs-tools
version=0.97.2 version=0.98
build_style=custom-install build_style=custom-install
short_desc="Tools for generating an initramfs" short_desc="Tools for generating an initramfs"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
@ -95,4 +95,5 @@ do_install()
# Scripts # Scripts
install -m 755 $FILESDIR/mkinitramfs $DESTDIR/usr/sbin install -m 755 $FILESDIR/mkinitramfs $DESTDIR/usr/sbin
install -m 755 $FILESDIR/update-initramfs $DESTDIR/usr/sbin install -m 755 $FILESDIR/update-initramfs $DESTDIR/usr/sbin
sed -i -e "s|@VERSION@|${version}|g" $DESTDIR/usr/sbin/update-initramfs
} }