need /lib/modules dir in images (-root.tgz , -root.txz)

Bug #1501843 reported by Scott Moser
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-images
Fix Released
Medium
Unassigned

Bug Description

I was playing with using the lxd image converted to squashfs as a root filesystem to be booted on a real system (not in lxc or lxd).
I grabbed a kernel and initramfs from maas ephemeral images, and boot mostly worked.

However, cloud-initramfs-copymods will not work if /lib/modules isn't present in the image.
cloud-initramfs-copymods ensures that the modules in the initramfs are availble after boot in /lib/modules/<kver>

It does this by creating a tmpfs mount over /lib/modules and moving the initramfs /lib/modules to there.

However, to do that it needs the /lib/modules mount point to exist in the read-only (at that point) root filesystem.

So, long story short, I'm asking for creation of an empty /lib/modules directory in the lxd/lxc images.

Scott Moser (smoser)
tags: added: cloud-images
Changed in ubuntu:
status: New → Confirmed
importance: Undecided → Medium
Scott Moser (smoser)
tags: added: cloud-images-build
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1501843/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Mathew Hodson (mhodson)
affects: ubuntu → uec-live-build
Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

This was fix released a bit ago.
ben@prongs:~/tmp$ wget https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64.squashfs
ben@prongs:~/tmp$ sudo mount -o loop xenial-server-cloudimg-amd64.squashfs /mnt
ben@prongs:~/tmp$ stat /mnt/lib/modules
  File: '/mnt/lib/modules'
  Size: 3 Blocks: 0 IO Block: 1024 directory
Device: 700h/1792d Inode: 2056 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-03-19 08:22:05.000000000 -0600
Modify: 2016-03-19 08:22:05.000000000 -0600
Change: 2016-03-19 08:22:05.000000000 -0600
 Birth: -

Changed in uec-live-build:
status: Confirmed → Fix Released
assignee: nobody → Ben Howard (utlemming)
Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

Please note that comment #2 uses the squashfs download which is generated the same way as the tar.gz files.

Mathew Hodson (mhodson)
affects: uec-live-build → cloud-images
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.