dangling symlinks handling
Bug #46264 reported by
Luis Mondesi
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Binary package hint: initramfs-tools
update-initramfs -u doesn't handle dangling symlinks properly:
sudo ln -s /doesnotexist /vmlinuz
sudo ln -s /fakeinitrd /initrd.img
running update-initramfs -u attempts to create /boot/fakeinitrd. of course, if this would be the name of a kernel whose /lib/modules/`uname -r` directory still existed, then the initrd creation would've gone further.
update-initramfs should at least make sure that the vmlinuz link points to an existing (and supported) kernel.
To post a comment you must log in.
Is this symptom reproducible in 8.10 alpha?