summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-08-07Bump Standards-Version to 3.9.1.Michael Prokop
2010-08-07Merge branch 'maks/bootloader'Michael Prokop
2010-08-06init: provide fastforward path for the common case when validating init binary.Michael Prokop
2010-08-06init: provide validate_init() wrapper to support absolute symlinks.Michael Prokop
If /sbin/init is an absolute symlink (e.g. to /bin/systemd) the readlink check doesn't work as $rootmnt is involved. The validate_init() shell function takes care of this fact, as well as when guessing the init binary points to a directory. For example Ubuntu's upstart has its configuration inside /etc/init whereas this is considered a valid run_init_process() binary by the Linux kernel and `test -x' returns true when checking for executables. Therefore be more conservative with providing full backwards compability as well as new added support for absolute symlinks at the same time. Closes: #590744
2010-08-07update-initramfs: run_bootloader() invoke Initramfs hooksmaximilian attems
Conform to policy http://kernel-handbook.alioth.debian.org/ch-update-hooks.html#s-initramfs-hooks We check that the dir exists to no longer invoke boot loader on our own for squeeze, but work on partial upgrades from lenny. The bootloader invocations can be removed postsqueeze. Signed-off-by: maximilian attems <maks@debian.org>
2010-08-07initramfs-tools: only allow hook scripts to errexit on mkinitramfsmaximilian attems
version is "the" essential exported variable by mkinitramfs. Use it's string length to determine that we are on mkinitramfs stage and not trying to boot a not precached initramfs image. hook scripts on boot can exit due to random failures and shouldn't interrupt boot there. Signed-off-by: maximilian attems <maks@debian.org>
2010-08-01update-initramfs: revert nounsetmaximilian attems
Brought no gain in code readability and lots of bug reports. Closes: #588915 Suggested-by: Colin Watson <cjwatson@ubuntu.com> Signed-off-by: maximilian attems <maks@debian.org>
2010-07-09Merge branch 'sid'maximilian attems
Conflicts: mkinitramfs scripts/functions
2010-07-09update-initramfs: stop buildprocess if any script is failingMichael Prokop
Signed-off-by: Michael Prokop <mika@debian.org>
2010-07-09Merge branch 'maks/hooks'maximilian attems
2010-07-09mkinitramfs: do not execute compress command under quotesMichael Prokop
If we quote the $compress command then any options are considered as part of the command, resulting in something like: lzop -9: not found while updating a initramfs Closes: #588517 Signed-off-by: Michael Prokop <mika@debian.org>
2010-07-08Redirect STDOUT to STDERR for post{inst,rm} hooksStephen Powell
Avoids output being swallowed by debconf's redirection of STDOUT. Signed-off-by: maximilian attems <maks@debian.org>
2010-07-08postinst hook: respect INITRD variableStephen Powell
Do not create an initial RAM file system image for a custom kernel created by make-kpkg if one was not requested by the --initrd flag of make-kpkg. Signed-off-by: maximilian attems <maks@debian.org>
2010-07-08maintainer notes: underline that mail to one of the 2 lists is goodmaximilian attems
small wording change. Signed-off-by: maximilian attems <maks@debian.org>
2010-07-08some minor rewording of sentences about development mailinglistsMichael Prokop
Signed-off-by: Michael Prokop <mika@debian.org>
2010-07-08Maintainer notes document dev mailinglistsmaximilian attems
we are listening there. :) Signed-off-by: maximilian attems <maks@debian.org>
2010-07-08revert mkinitramfs errexit and nounsetmaximilian attems
currently already to many failure pathes, no point in rushing more into the next release for squeeze. plan is to reinstate postqueeze. Reviewed-by: Michael Prokop <mika@debian.org> Signed-off-by: maximilian attems <maks@debian.org>
2010-07-08mkinitramfs: Provide error code of failed mkinitramfs creationmaximilian attems
We better print them out before exiting, this should allow quicker diagnose of what is going on. Be sure to print out all error codes as a failure of compress is highly likely to generate an SIGPIPE aka error code 141. Silent error exits are troublesome for debugging error cause. Signed-off-by: maximilian attems <maks@debian.org>
2010-07-08control: conform to latest policy without changesmaximilian attems
Signed-off-by: maximilian attems <maks@debian.org>
2010-07-07mkinitramfs: set COMPRESS=gzip to be more consistent.maximilian attems
it is used that way in the configuration file example. Thanks: Colin Watson <cjwatson@ubuntu.com> Signed-off-by: maximilian attems <maks@debian.org>
2010-07-06release 0.97.2v0.97.2maximilian attems
2010-07-06initramfs-tools: output name of script that errexits.maximilian attems
this should make bug reports concerning bogus hook scripts easier to handle, like the *loooong* iscan story. Closes: 586554 Signed-off-by: maximilian attems <maks@debian.org>
2010-07-06initramfs-tools: output name of script that errexits.maximilian attems
this should make bug reports concerning bogus hook scripts easier to handle, like the *loooong* iscan story. Closes: 586554 Signed-off-by: maximilian attems <maks@debian.org>
2010-07-05release 0.97.1v0.97.1maximilian attems
urgency high as it fixes initramfs-tools compress handling. Signed-off-by: maximilian attems <maks@debian.org>
2010-07-05mkinitramfs: Fix missing compress quotingsmaximilian attems
the fallback for unset ${compress} never got used, due to the missing quotes. Do also set the GZIP CONFIG option when setting fallback of gzip. Closes: 587608 Thanks: Valentin QUEQUET <valentin.quequet@orange.fr> Signed-off-by: maximilian attems <maks@debian.org>
2010-07-05mkinitramfs: Fix missing compress quotingsmaximilian attems
the fallback for unset ${compress} never got used, due to the missing quotes. Do also set the GZIP CONFIG option when setting fallback of gzip. Closes: 587608 Thanks: Valentin QUEQUET <valentin.quequet@orange.fr> Signed-off-by: maximilian attems <maks@debian.org>
2010-06-22update-initramfs: run_bootloader() return after zipl and flash-kernelmaximilian attems
Spotted by mika, that those returns where missing. Signed-off-by: maximilian attems <maks@debian.org>
2010-06-22initramfs-tools.8: Enhance documentation of boot optionmaximilian attems
Enhance manpage to target casual reader, who wants to know more about his kernel commandline. The boot/mkinitramfs hook hacker may easily read on, so move their desc a bit down. Add errexit hint of hook scripts. Also enhance a better written § from dracut, the current one was just jibberish. Reviewed-by: Michael Prokop <mika@debian.org> Signed-off-by: maximilian attems <maks@debian.org>
2010-06-22reportbug: list the mkinitramfs hook scripts of reporting boxmaximilian attems
It is interesting to see which are installed, may help to pindown some bugs earlier. Signed-off-by: maximilian attems <maks@debian.org>
2010-06-22mkinitramfs: set nounset and errexitmaximilian attems
Better catch both early than stupid mistakes cropping in. Signed-off-by: maximilian attems <maks@debian.org>
2010-06-22maintainer-notes: use git config instead of environment variablesMichael Prokop
Thanks: Gerfried Fuchs <rhonda@deb.at> Signed-off-by: Michael Prokop <mika@debian.org>
2010-06-22maintainer-notes: document "git remote prune origin"Michael Prokop
Thanks: maximilian attems <maks@debian.org> Signed-off-by: Michael Prokop <mika@debian.org>
2010-06-18add debian/source/format with "3.0 (native)" to make lintian happyMichael Prokop
Signed-off-by: Michael Prokop <mika@debian.org>
2010-06-18install doc-base file for doc-base-registrationMichael Prokop
Fix possible-documentation-but-no-doc-base-registration to make lintian happy. Signed-off-by: Michael Prokop <mika@debian.org>
2010-06-18debian/NEWS: drop asterisk chars to make lintian happyMichael Prokop
Signed-off-by: Michael Prokop <mika@debian.org>
2010-06-18fix typos in manpage, scripts/functions and conf/initramfs.conf - thanks lintianMichael Prokop
* paramater -> parameter * adress -> address * adress -> address * overriden -> overridden * correponds -> corresponds * correponds -> corresponds * Overriden -> Overridden * usualy -> usually Signed-off-by: Michael Prokop <mika@debian.org>
2010-06-18Releasing version 0.97.v0.97Michael Prokop
Signed-off-by: Michael Prokop <mika@debian.org>
2010-06-18mkinitramfs, lsinitramfs: Better error message for non-GNU getoptmaximilian attems
Reported-by: Michael Prokop <mika@debian.org> Signed-off-by: maximilian attems <maks@debian.org>
2010-06-18slightly improve manpage lsinitramfs.8Michael Prokop
Signed-off-by: Michael Prokop <mika@debian.org>
2010-06-18lsinitramfs: use getopt for -l optionmaximilian attems
only pass verbose to cpio if invoked with -l or --long. add minimal hints to manpage. Signed-off-by: maximilian attems <maks@debian.org>
2010-06-18nfsmount: more small cleanupsmaximilian attems
code up the nfs rootdelay in a more efficient way. here people need the time it takes, so stay on 180s. Signed-off-by: maximilian attems <maks@debian.org>
2010-06-18scripts/nfs: cleanup retry logicFerenc Wagner
The condition of log_end_msg was always true. Calling do_nfsmount before the loop lets us drop two other checks. Signed-off-by: Ferenc Wagner <wferi@niif.hu> Signed-off-by: maximilian attems <maks@debian.org>
2010-06-18maintainer doc: use git commands without the dashmaximilian attems
plus minor changes: - initramfs-tools uses master branches. - DEBEMAIL and friends affects devscripts. Signed-off-by: maximilian attems <maks@debian.org>
2010-06-18docs/maintainer-notes: valid XHTML 1.0 Strict document, add section "Build ↵Michael Prokop
snapshot version", add license note, minor formating cleanups + improvements Signed-off-by: Michael Prokop <mika@debian.org>
2010-06-17hook-functions: install virtio_pci module if /sys/bus/virtio is present and ↵Michael Prokop
using modules=dep Thanks: Vincent Danjean <vdanjean@debian.org> Closes: #585992 Signed-off-by: Michael Prokop <mika@debian.org>
2010-06-17scripts/functions: fix another sh -n usage and fix typoMichael Prokop
Signed-off-by: Michael Prokop <mika@debian.org>
2010-06-17scripts/functions: fix usage of test for script executionMichael Prokop
Signed-off-by: Michael Prokop <mika@debian.org>
2010-06-17scripts/functions: beautify a bit reduce_satisfied()maximilian attems
shorten code, no code change. function easier to read. Signed-off-by: maximilian attems <maks@debian.org>
2010-06-17mkinitramfs: check syntax of boot and hook scriptsmaximilian attems
only run them when sytax is good. Idea from LP: #570243. important now that we have errexit on for them. Signed-off-by: maximilian attems <maks@debian.org>
2010-06-17lsinitramfs: allow to pass several filenamesmaximilian attems
due to the quoting use $@ to expand to several arguments. Signed-off-by: maximilian attems <maks@debian.org>