Cannot boot of relative path of / is not /

Bug #1032326 reported by Kasper Dupont
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Confirmed
Medium
Andy Whitcroft

Bug Description

I'm not sure if this should be classified as a bug or a feature request.

The scripts to install a new kernel will call "grub-mkrelpath /boot" and use the result to properly handle a /boot directory located in unusual locations. However they do not do any "grub-mkrelpath /" call at any point, and simply assumes the result is always "/" (with a minor exception in the case the file system is btrfs).

With a bit of manual work, it is possible to configure a system where "grub-mkrelpath /" does not report "/". However such a system will be rendered non-bootable after the next kernel update.

The attached patch fixes it for me.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: initramfs-tools 0.99ubuntu13 [modified: usr/share/initramfs-tools/init]
ProcVersionSignature: Ubuntu 3.2.0-27.43-generic 3.2.21
Uname: Linux 3.2.0-27-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu11
Architecture: i386
Date: Thu Aug 2 20:27:38 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: initramfs-tools
UpgradeStatus: Upgraded to precise on 2012-05-08 (85 days ago)

Revision history for this message
Kasper Dupont (ubuntu-launchpad-feb) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Run "grub-mkrelpath /" at kernel install time and pass result to initrd" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Andy Whitcroft (apw)
Changed in initramfs-tools (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Andy Whitcroft (apw)
milestone: none → ubuntu-15.08
Andy Whitcroft (apw)
Changed in initramfs-tools (Ubuntu):
milestone: ubuntu-15.08 → ubuntu-15.09
Andy Whitcroft (apw)
Changed in initramfs-tools (Ubuntu):
milestone: ubuntu-15.09 → ubuntu-15.10
Andy Whitcroft (apw)
Changed in initramfs-tools (Ubuntu):
milestone: ubuntu-15.10 → ubuntu-15.11
Andy Whitcroft (apw)
Changed in initramfs-tools (Ubuntu):
milestone: ubuntu-15.11 → ubuntu-15.12
Andy Whitcroft (apw)
Changed in initramfs-tools (Ubuntu):
milestone: ubuntu-15.12 → ubuntu-16.01
Andy Whitcroft (apw)
Changed in initramfs-tools (Ubuntu):
milestone: ubuntu-16.01 → ubuntu-16.02
Andy Whitcroft (apw)
Changed in initramfs-tools (Ubuntu):
milestone: ubuntu-16.02 → ubuntu-16.03
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.