Check and forbid separate /etc

Bug #148331 reported by orange
4
Affects Status Importance Assigned to Milestone
partman-target (Ubuntu)
Fix Released
Low
Colin Watson

Bug Description

Binary package hint: debian-installer

When I setup my system to use raid1 partitions:
md1 /boot
md2 swap
md3 lvm

And lvm as:
lvm1 /
lvm2 /etc

Next time I restart my system I'll get this error:
kinit: No resume image, doing normal boot...
init: Error parsing configuration: No such file or directory
[ ... ] Kernel panic - not syncing: Attempted to kill init!

I managed to get the system to boot by mounting up the root and etc partition and move the whole etc-content to the root and remove the entry from fstab. I reported this problem for debian-installer in case you're not allowed to have the etc-partition setup that way.

Revision history for this message
Colin Watson (cjwatson) wrote :

A separate /etc partition is definitely not possible with any conceivable method of installing Ubuntu. partman-target (or something nearby) should check and forbid this.

Changed in debian-installer:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
JoshuaKersey (goodtimetribe) wrote :

I think I ran into this installing Hardy Heron. I know enough about Linux to be dangerous and I guess here's where I proved it. I thought putting /etc on it's own partition could be a benefit for risk management. now I see it's a waste of time. It really should be checked and forbidden in the installer... to save others the extra 30 minutes of a reinstall.

Revision history for this message
JoshuaKersey (goodtimetribe) wrote :

Ok, yes, I was able to install Hardy just fine as long as /etc wasn't in it's own partition. I think the priority should be adjusted on this. I feel it's important for the install program to not permit the user to choose a known non-working configuration.

Revision history for this message
Colin Watson (cjwatson) wrote :

I could increase the priority, but I guess you'd rather I just fixed it instead. ;-)

Changed in partman-target:
assignee: nobody → kamion
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (4.0 KiB)

This bug was fixed in the package partman-target - 54ubuntu1

---------------
partman-target (54ubuntu1) hardy; urgency=low

  [ Colin Watson ]
  * Resynchronise with Debian, largely to pick up checks for directories
    that must be on the root file system (LP: #148331). Remaining changes:
    - Use UUID= fstab syntax for all partitions if a UUID is available, and
      add a comment above each UUID to indicate the corresponding device at
      install time.
    - Disable automatic mounting of USB removable devices.
    - Don't use UUIDs in fstab for those device types that volumeid.postinst
      refuses to convert.
    - Mount CD-ROMs and floppies with 'exec'.
    - Use the path of the file associated with a loop device in /etc/fstab,
      rather than the filesystem's UUID or the loop device path.
    - Always set the loop option for loop devices.
    - Remove critical system files from the existing filesystem before
      installing.
    - Preserve the UID and GID of the initial user, if possible. Requires a
      patch to user-setup.
    - Mount CD-ROMs and floppies with the "utf8" option by default.
  * Don't clear partitions marked "do not use" (LP: #198106).

  [ Evan Dandrea ]
  * Clean up mountpoint check for bug fixing and readability. Thanks
    Colin Watson.

partman-target (54) unstable; urgency=low

  [ Colin Watson ]
  * Ensure that /bin, /etc, /lib*, and /sbin are on the root file system.

  [ Frans Pop ]
  * Add default value for mount_failed template (see #457901).

  [ Updated translations ]
  * Amharic (am.po) by tegegne tefera
  * Bulgarian (bg.po) by Damyan Ivanov
  * Catalan (ca.po) by Jordi Mallach
  * Czech (cs.po) by Miroslav Kure
  * German (de.po) by Jens Seidel
  * Dzongkha (dz.po) by Jurmey Rabgay
  * Esperanto (eo.po) by Serge Leblanc
  * Spanish (es.po) by Javier Fernández-Sanguino Peña
  * Basque (eu.po) by Piarres Beobide
  * Finnish (fi.po) by Esko Arajärvi
  * French (fr.po) by Christian Perrier
  * Galician (gl.po) by Jacobo Tarrio
  * Hebrew (he.po) by Lior Kaplan
  * Hindi (hi.po) by Kumar Appaiah
  * Hungarian (hu.po) by SZERVÁC Attila
  * Indonesian (id.po) by Arief S Fitrianto
  * Italian (it.po) by Stefano Canepa
  * Japanese (ja.po) by Kenshi Muto
  * Central Khmer (km.po) by Khoem Sokhem
  * Korean (ko.po) by Changwoo Ryu
  * Kurdish (ku.po) by Erdal Ronahi
  * Lithuanian (lt.po) by Kęstutis Biliūnas
  * Latvian (lv.po) by Viesturs Zarins
  * Malayalam (ml.po) by Praveen|പ്രവീണ്‍ A|എ
  * Norwegian Bokmål (nb.po) by Hans Fredrik Nordhaug
  * Nepali (ne.po) by Shyam Krishna Bal
  * Dutch (nl.po) by Frans Pop
  * Norwegian Nynorsk (nn.po) by Håvard Korsvoll
  * Panjabi (pa.po) by Amanpreet Singh Alam
  * Polish (pl.po) by Bartosz Fenski
  * Portuguese (Brazil) (pt_BR.po) by Felipe Augusto van de Wiel (faw)
  * Portuguese (pt.po) by Miguel Figueiredo
  * Romanian (ro.po) by Eddy Petrișor
  * Russian (ru.po) by Yuri Kozlov
  * Slovak (sk.po) by Peter Mann
  * Slovenian (sl.po) by Matej Kovacic
  * Swedish (sv.po) by Daniel Nylander
  * Tamil (ta.po) by Dr.T.Vasudevan
  * Thai (th.po) by Theppitak Karoonboonyanan
  * Turkish (tr.po) by Recai Oktaş
  * Ukrainian (uk.po)
  * Vietnamese (vi.po) by Clyti...

Read more...

Changed in partman-target:
status: Fix Committed → 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.