fai tries to access /etc/mtab in read-only environment

Bug #207582 reported by Christian Meier
2
Affects Status Importance Assigned to Milestone
fai (Ubuntu)
Fix Released
Undecided
Reinhard Tartler

Bug Description

When installing hardy with fai (3.2.4+svn4837-0ubuntu1)
fai tries to mount the mirror without -n option causing the installation to fail.
(mount tries to access /etc/mtab which is only a double symlink to readonly /proc/self/mounts)

The changelog of 3.2.1-0ubuntu2~ppa1~gutsy1 has an entry that claims to fix this problem
but in 3.2.4+svn4837-0ubuntu1 this problem exists.

Revision history for this message
Björn Torkelsson (torkel) wrote :

The bug is not actually that mount tries to write /etc/mtab, but that unionfs is broken and doesn't allow you to "edit" existing files. See bug 197006.

Revision history for this message
Reinhard Tartler (siretart) wrote :

adding -n to the mount options for 'ro' mounts helps here. will be added to the next upload

Changed in fai:
status: New → In Progress
assignee: nobody → siretart
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package fai - 3.2.4+svn4837-0ubuntu2

---------------
fai (3.2.4+svn4837-0ubuntu2) hardy; urgency=low

  * upload to hardy

fai (3.2.4+svn4837-0ubuntu2~ppa3) hardy; urgency=low

  * simple config GRUB/10-setup: add to kernel-img.conf postinst and postrm
    hook settings that run update-grub. Without them, grub's menu.lst is not
    updated on linux image installation/removal.

fai (3.2.4+svn4837-0ubuntu2~ppa2) hardy; urgency=low

  * don't install menu.lst and GRUB postinst script at all in the binary
    package by removing them in the clean rule of debian/rules
  * remove console-data support, show how to preseed console-setup in the
    example class GERMAN. (LP: #207756)

fai (3.2.4+svn4837-0ubuntu2~ppa1) hardy; urgency=low

  [ Christian Meier ]
  * bin/fai, lib/get-config-dir-nfs: always use -n option in romountopt to
    prevent accessing /etc/mtab in read-only environment
    (closes: LP: #207582)
  * fix grub example (closes LP: #187659)
    * remove menu.lst of examples
    * move the postinst script of menu.lst to
      examples/simple/scripts/GRUB/10-setup and modify it to let update-grub
      do the configuration of menu.lst
  * workaround for not correctly working unionfs over nfs
    * create nfshooks (/etc/fai/10-unionfs-workaround) that delete certain
      files in nfsroot that will be created automatically through fai scripts.
      (LP: #197006)
  * add ghostscript to build dependencies
  * don't fail build if there are no postinst scripts in the 'simple-example'
    configuration space

  [ Reinhard Tartler ]
  * add genisofs alternative to mkisofs in fai-server and fai-quickstart
    packages (LP: #156836)

 -- Reinhard Tartler <email address hidden> Tue, 01 Apr 2008 12:41:34 +0200

Changed in fai:
status: In Progress → 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.