summaryrefslogtreecommitdiff
path: root/update-initramfs
AgeCommit message (Collapse)Author
2008-04-08update-initramfs: Rename function according to reliability fix.maximilian attems
purpose of function changed, now we keep the old initramfs on the real path until mkinitramfs run finished.
2008-04-08update-initramfs: Initramfs generation reliability fixes.Luke Yelavich
Attached is a patch to improve the way update-initramfs handles the generating of new or updated initramfs images for kernels. It puts in place a few measures to ensure that if there is not enough disk space on /boot, a previous initramfs is still in tact, to allow the booting of that kernel. The patch applies against current git head. See the Ubuntu specification found at the following URL for more information: https://wiki.ubuntu.com/HardyInitramfsErrorHandling This patch does the following: * When generating a new initramfs, instead of copying the old initramfs to a backup file, it hard links it instead, so no more space is used than necessary. it only copies to the backup file in the event that the filesystem on /boot doesn't support hard links, eg FAT32 partitions. * A new file is used to generate the initramfs. If the generation succeeds, it is moved to the original initramfs's location, ready to use. If it fails, the original initramfs is not affected, allowing it to be used at boot. [ wrap on long line -maks ]
2008-04-02update-initramfs: use dpkg-triggerJoey Hess
This is a lightly modified version of Ian Jackson's original patch, incorporating maximilian attems's comments. dh_installdeb automatically installs the triggers file, so the rules file does not need to be changed.
2008-01-05update-initramfs: fix ro-mounted /boot check (closes: #458772)Daniel Reichelt
Hi Kernel-Team, i stumbled over this bug when I wanted to update my initrd while I had some isos loop-mounted like this: $ cat /proc/mounts |grep boot /dev/hda1 /boot ext2 rw 0 0 /dev/loop57 /srv/pub/iso_loop/sys/bootrescue-cd-20071129-59 iso9660 ro 0 0 /dev/loop58 /srv/pub/iso_loop/sys/bootrescue-cd-dev iso9660 ro 0 0 /dev/loop59 /srv/pub/iso_loop/sys/bootrescue-dvd-20071129-59 iso9660 ro 0 0 /dev/loop60 /srv/pub/iso_loop/sys/bootrescue-dvd-dev iso9660 ro 0 0 The check for a ro-mounted /boot partition was falsly triggered by the mount targets of the iso-images. As you can see in the patch attached, for the conditional awk output to work as desired, another pair of hyphen enclosing the awk match calls is required. HTH, Daniel Reichelt
2007-11-28update-initramfs: Fix ro /boot partition check (closes: #451151)maximilian attems
Newer kernel in the effort of killing /etc/mtab show mount options, like errors=remount-ro, that is matched for read only. Thanks Jan Niehusmann <jan@gondor.com> for report.
2007-09-04update-initramfs: Don't check for ro /boot inside of a chroot.maximilian attems
debian-live may as well be build on a host with ro /boot
2007-08-09update_initramfs tristate variable "all"maximilian attems
allow admin to set that an update-initramfs postinst call should update any known initramfs.
2007-08-09update-initramfs: enhance altered error message.maximilian attems
2007-04-05scripts/functions, mkinitramfs: better backup file handlingmaximilian attems
* don't panick on backup files on boot, just ignore them * don't include backup file in initramfs * cleanup changelog this is quite a fundamental change need to double check that it works on nfs root too.. :)
2007-04-02bootfixes: mount args don't like spacesmaximilian attems
restore_initramfs(): verbose output before action
2007-04-02update-initramfs: restore_initramfsmaximilian attems
restore initramfs on failure path
2007-04-02first prerelease 0.86 + merge 0.85fmaximilian attems
* kick mdrun script * update control for lenny + ubuntu * add _all_ ide, block and drivers * use MODPROBE_OPTIONS and kill any modprobed arg * small doc + whitespace fixes
2006-12-14- show lilo error on lilo failuremaximilian attems
- add hppa zalon module - reduce size due to keeping only 1 busybox copy - warn on update mode when no initramfs exist and takeover not specified
2006-12-02- allow to disable backupmaximilian attems
- new bzr location - functional copy_dir_modules() - modprobe a bunch of ppc windfarm modules in thermal - provide output on error
2006-11-04- check that an initrd is around before trying to backupmaximilian attems
2006-11-02- enhance mbr_check()maximilian attems
- fix /boot ro check - create fb devices unconditionaly
2006-10-18- improve run_bootloader (elilo, zipl)maximilian attems
- fix preinst sed command - bunch of minor fixes
2006-10-13last minute fixes update-initramfs:maximilian attems
- find against the correct backup - check if initramfs _really_ exists
2006-10-13whitespace policymaximilian attems
2006-10-13- add backup handling to initramfs-toolsmaximilian attems
- allow conservative settings for skipping updated initramfs. - debug output to screen - parse mbr for lilo + small fixes
2006-09-27- mkinitramfs: allow umask setting paranoidmaximilian attems
- revert an nfs changes small fixes over the place
2006-09-19- more nfs work (timeout, parsing, typo)maximilian attems
- lilo codeflow - add lasi700 scsi module
2006-09-12- another run_lilo improvementmaximilian attems
2006-09-12- check for ro /bootmaximilian attems
- allow -k all for all modes and more feedback on deleting - small whitespace cleanup
2006-09-01- fix destination of the mdrun.conf for partial sarge upgradesmaximilian attems
- checkout if /sbin/lilo is really there - guard more dirs against creation - add /etc/kernel-img.conf to reportbug output
2006-08-25- fix bashismmaximilian attems
- rename mdadm.conf in mdrun.conf - retry nfsmount - harden init - fix lvm boot script prereqs
2006-08-23- improved nfsroo parsingmaximilian attems
- added rootdelay and rootfstype bootargs - document this changes - initrd-tools backward compatible mdadm assembe and then run mdrun - update-initramfs really checkout use_bootloader from /etc/kernel-img.conf - tighter klibc deps
2006-08-18- really add DAC960 + add megaraid_sasmaximilian attems
- update TODO - first take at the panic parsing - do_bootloader variable is not case sensitive, catch more cases - if panic is set to 0 reboot and don't open console, needs still work for all other values.
2006-08-17Release 0.74:maximilian attems
- scripts/functions: fix debug boot param - update-initramfs: checkout /etc/kernel-img.conf if lilo and grub is installed - rename mdraid to mdrun, readd mdrun as it seems to work much better with sarge systems - add an help message for rescue shell - better package desc
2006-07-24- add BUSYBOX section to confmaximilian attems
- add myri10ge, smc911x and hptiop modules - fix check_minkver() logic - escape resume variables - fix SEE ALSO section in all manpages - source /usr/share/initramfs-tools/conf.d/* - check against modules.dep before running depmod - more verbose output - open console with -i for dash interactive - fix resume param by LABEL or UUID - lvm has new prereq mdadm - update-initramfs fix -v calling - functions/scripts replace basename usage with shell expansion
2006-07-16massif whitespace cleanupmaximilian attems
2006-07-16big ubuntu merge:maximilian attems
- changelog - typos + whitespace + comments + quoting - vga16fb
2006-07-12- rename suspend boot script in resumemaximilian attems
- update-initramfs add -b bootdif flag document it - check for noresume arg in init
2006-07-02woow pile of stuff turned up:maximilian attems
- cleanup of activate_vg() in lvm boot script - use less of busybox utilities - conf.d for BUSYBOX=y usage for the packages - don't poke on conffile for RESUME - use printf instead of expr (ooh ash and dash are *fun*) - fix update-initramfs to use current_version when no other version exists around
2006-06-24- no longer need to remove initramfs-tools/modules on postrmmaximilian attems
ubuntu sync: - change prereqs policy - add check_minver - use it in update-initramfs - fix version to use in update-initramfs
2006-06-24lvm script patch activate root and resume volume groupmaximilian attems
lvm script root on lilo woraround lvm hook add dm-mirror mkinitramfs cleanup old make-kpkg args update-initramfs show what's going on
2006-04-180.60:maximilian attems
- bug script - cryptoroot support - change exported variables - nfsopts, rootflags support - warn lilo+grub install - doc fixes
2006-03-21add verbose mode for mkinitramfs, use it when calling itmaximilian attems
display which modules gets added, we might want to have even more verbose info, but that is a nice start. add cpqarray module document `-' filename restriction don't exit succesfully if root fs full
2006-03-15run lilo if no grub is around.maximilian attems
2006-03-08add the 0.53[bc] changesets:maximilian attems
where takeover=0 and no '-' in script names
2006-02-27really set takeover=0maximilian attems
2006-02-20fix adding initrd against newer handbuild kernels.maximilian attems
2006-02-20set takeover=1 in debian too,maximilian attems
removes the need of a stupid wrapper package
2006-02-13s/was/has/ been alteredmaximilian attems
2006-01-24sync 0.40ubuntu16maximilian attems
2005-10-21jonas: Quote variables. Use test options -n and -z.maximilian attems
2005-10-01apply all the 0.30 upstream changes.maximilian attems
2005-09-20add question mark to the getoptsmaximilian attems
2005-09-17initramfs-tools (0.26) breezy; urgency=lowJeff Bailey
"Experience is one thing you can't get for nothing." - Oscar Wilde * scripts/local-top/lvm: Reduce -- to - in VG strings for feeding to vgchange. (Ubuntu: #13387) * update-initramfs: New file * debian/dirs: Add /var/lib/initramfs-tools * hooks/evms: New file * scripts/local-top: New file. * debian/control: Bump klibc depends to 1.0.14-1ubuntu2 for jfs support * hook-scripts (manual_add_modules): Don't do unnecessary depmod (dep_add_modules): No need for a sleep 2 here. Thanks to Matt Zimmmerman for noticing these! * scripts/functions: Attempt resume before loading USB or Network modules to avoid resume issues with USB. Thanks to Matthew Garrett for this patch! * scripts/functions (ide_boot_events): Always load ide-generic before going further. This allows us to catch any hidden IDE controllers that might not otherwise get found. * initramfs.conf.5: New file * debian/initramfs-tools.manpages: Install it. Thanks to maximilian attems for the manpage! * hook-functions (auto_add_modules): Add mptscsih (Ubuntu #15406) Thanks to Jesper Krogh for the bug report! * debian/dirs: Add etc/mkinitramfs/hooks, move all scripts subdirs into etc/mkinitramfs/scripts. * mkinitramfs: Set the umask. Copy the scripts from /etc/mkinitramfs/scripts into the image. Make sure that modules file lists is actually a regular file. * init: Use ${rootmnt} instead of hardcoded /root, use mount -n Fix typo. * hook-functions (catenate_cpiogz): Add sanity check. (add_modules_from_file): Document, quote variable, add warning. * docs/example_hook: Update Thanks to Karl Hegbloom for these previous 5 patches! * init: Create /var/lock on the initramfs Thanks to Jerry Haltom for noticing this! * debian/dirs: rename to ... * debian/initramfs-tools.dirs: ... this. * scripts/functions (scsi_boot_events): Don't attempt to look at ${device}/type if it doesn't actually exist. -- Jeff Bailey <jbailey@ubuntu.com> Wed, 14 Sep 2005 14:12:24 -0400