overlayroot: system cannot boot because "noauto" options in fstab is not honored

Bug #1779279 reported by c
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-initramfs-tools (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

overlayroot is enabled and is using tmpfs

If there is a disk specified with "noauto" option in fstab and it is absent during boot, the system cannot boot normally and it fall into systemd emergency mode

It is found out that overlayroot do not honor "noauto" option and generate entry in the "modified" fstab.

Ubunut 18.04

$ lsb_release -rd
Description: Ubuntu 18.04 LTS
Release: 18.0

$ sudo apt-cache policy overlayroot
overlayroot:
  Installed: 0.40ubuntu1
  Candidate: 0.40ubuntu1

Tags: patch
Revision history for this message
c (lsching17) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

Hi, can you please provide your original fstab file and also the one written by overlayfs ?

Changed in cloud-initramfs-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
c (lsching17) wrote :

The attachment is already upload on 29/6. The name is "attachments.7z"

Changed in cloud-initramfs-tools (Ubuntu):
status: Incomplete → New
Revision history for this message
Scott Moser (smoser) wrote :

Thanks,

I think the right thing to do here is to just copy the 'noauto' from underlay/backing partition to the overlay fstab entry.

Could you try this patch?

Thanks.

Revision history for this message
c (lsching17) wrote :

in "attachments.7z" -> "fstab", there is an entry:

LABEL=test /mnt ext4 noauto,errors=remount-ro 0 2

in "attachments.7z" -> "fstab_generated_by_overlayroot", there is an entry generated by overlayroot:

LABEL=test /media/root-ro/mnt ext4 ro,noauto,errors=remount-ro 0 2

The "noauto" mount option is already copied by overlayroot

tags: added: patch
Revision history for this message
c (lsching17) wrote :

The patch is tested ok.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-initramfs-tools - 0.41ubuntu1

---------------
cloud-initramfs-tools (0.41ubuntu1) cosmic; urgency=medium

  * growroot: copy_exec from wherever they were in path. Closes #852569.
  * overlayroot: Make overlay mount 'noauto' if backing mount is 'noauto'.
    (LP: #1779279)

 -- Scott Moser <email address hidden> Tue, 10 Jul 2018 09:15:28 -0400

Changed in cloud-initramfs-tools (Ubuntu):
status: New → Fix Released
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.