initrd.img symlink is created absolute when the initrd creation is delayed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Andy Whitcroft | ||
Saucy |
Won't Fix
|
Medium
|
Andy Whitcroft |
Bug Description
When the linux-image package is installed, it creates symlinks from the root directory:
# ls -l /
initrd.img -> /boot/initrd.
vmlinuz -> boot/vmlinuz-
This is needed for booting the currently installed kernel (managed from within the distro for security updates etc) in certain environments, such as virtual hosts or root-NFS booting.
The bug is that the initrd.img symlink is absolute, since the test_relative() perl function checks for the presence of the initrd.img file, which is created after the postinst scripts runs, so it assumes a absolute symlink is needed. This isn't the case for the vmlinuz file, since it is shipped.
---
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: i386
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
DistroRelease: Ubuntu 13.10
HibernationDevice: RESUME=
InstallationDate: Installed on 2013-11-01 (3 days ago)
InstallationMedia: Edubuntu 13.10 "Saucy Salamander" - Release i386 (20131016.1)
IwConfig:
lo no wireless extensions.
eth0 no wireless extensions.
lxcbr0 no wireless extensions.
MachineType: ZOTAC ZBOXNANO-
MarkForUpload: True
Package: linux (not installed)
ProcEnviron:
LANGUAGE=en_SG:en
TERM=xterm
PATH=(custom, no user)
LANG=en_SG.UTF-8
SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
PulseList:
Error: command ['pacmd', 'list'] failed with exit code 1: Home directory not accessible: Permission denied
No PulseAudio daemon running, or not running as session daemon.
RelatedPackageV
linux-
linux-
linux-firmware 1.116
RfKill:
StagingDrivers: rts5139
Tags: saucy staging
Uname: Linux 3.11.0-12-generic i686
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
dmi.bios.date: 05/07/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4.6.5
dmi.board.
dmi.board.name: ZBOXNANO-
dmi.board.vendor: ZOTAC
dmi.board.version: XX
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: NA
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: ZBOXNANO-
dmi.product.
dmi.sys.vendor: ZOTAC
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
assignee: | nobody → Andy Whitcroft (apw) |
Changed in linux (Ubuntu Saucy): | |
status: | New → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Andy Whitcroft (apw) |
summary: |
- initrd.img symlink is absolute + initrd.img symlink is created absolute when the initrd creation is + delayed |
A candidate fix is to pass the vmlinuz- 3.11.0- 12-generic (or whatever) filename into the test_relative() function for the 'Test File' parameter, when it's called for the non-existent initrd.img-* file, since the vmlinuz is guaranteed to be present.