| Age | Commit message (Collapse) | Author |
|
purpose of function changed, now we keep the old initramfs
on the real path until mkinitramfs run finished.
|
|
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 ]
|
|
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.
|
|
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
|
|
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.
|
|
debian-live may as well be build on a host with ro /boot
|
|
allow admin to set that an update-initramfs postinst call
should update any known initramfs.
|
|
|
|
* 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.. :)
|
|
restore_initramfs(): verbose output before action
|
|
restore initramfs on failure path
|
|
* 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
|
|
- 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
|
|
- new bzr location
- functional copy_dir_modules()
- modprobe a bunch of ppc windfarm modules in thermal
- provide output on error
|
|
|
|
- fix /boot ro check
- create fb devices unconditionaly
|
|
- fix preinst sed command
- bunch of minor fixes
|
|
- find against the correct backup
- check if initramfs _really_ exists
|
|
|
|
- allow conservative settings for skipping updated initramfs.
- debug output to screen
- parse mbr for lilo
+ small fixes
|
|
- revert an nfs changes
small fixes over the place
|
|
- lilo codeflow
- add lasi700 scsi module
|
|
|
|
- allow -k all for all modes and more feedback on deleting
- small whitespace cleanup
|
|
- checkout if /sbin/lilo is really there
- guard more dirs against creation
- add /etc/kernel-img.conf to reportbug output
|
|
- rename mdadm.conf in mdrun.conf
- retry nfsmount
- harden init
- fix lvm boot script prereqs
|
|
- 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
|
|
- 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.
|
|
- 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
|
|
- 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
|
|
|
|
- changelog
- typos + whitespace + comments + quoting
- vga16fb
|
|
- update-initramfs add -b bootdif flag
document it
- check for noresume arg in init
|
|
- 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
|
|
ubuntu sync:
- change prereqs policy
- add check_minver
- use it in update-initramfs
- fix version to use in update-initramfs
|
|
lvm script root on lilo woraround
lvm hook add dm-mirror
mkinitramfs cleanup old make-kpkg args
update-initramfs show what's going on
|
|
- bug script
- cryptoroot support
- change exported variables
- nfsopts, rootflags support
- warn lilo+grub install
- doc fixes
|
|
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
|
|
|
|
where takeover=0 and no '-' in script names
|
|
|
|
|
|
removes the need of a stupid wrapper package
|
|
|
|
|
|
|
|
|
|
|
|
"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
|