Bug 167213 - Use sub directory as root file system
Summary: Use sub directory as root file system
Alias: None
Product: Fedora
Classification: Fedora
Component: mkinitrd   
(Show other bugs)
Version: 10
Hardware: All Linux
Target Milestone: ---
Assignee: Peter Jones
QA Contact: David Lawrence
Keywords: FutureFeature, Patch, Reopened
Depends On:
TreeView+ depends on / blocked
Reported: 2005-08-31 16:13 UTC by Kasper Dupont
Modified: 2009-02-17 19:28 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-02-17 19:28:07 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch implementing rootdir option (1.60 KB, patch)
2005-08-31 16:21 UTC, Kasper Dupont
no flags Details | Diff
Implementation for FC5 (1.91 KB, patch)
2006-08-20 09:39 UTC, Kasper Dupont
no flags Details | Diff
Implementation for FC6 (1.67 KB, patch)
2007-01-22 19:23 UTC, Kasper Dupont
no flags Details | Diff
Implementation for Fedora 8 (1.88 KB, patch)
2007-12-30 20:06 UTC, Kasper Dupont
no flags Details | Diff
For F10 (1.88 KB, patch)
2009-01-09 10:14 UTC, Kasper Dupont
no flags Details | Diff

Description Kasper Dupont 2005-08-31 16:13:47 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050719 Fedora/1.7.10-1.5.1

Description of problem:
It should be possible to create an initrd file that will work if the installation is placed in a subdirectory rather than the root of a partition.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Move Fedora Core from the root of a partition to a subdirectory
2. Try to boot.

Additional info:

Comment 1 Kasper Dupont 2005-08-31 16:21:45 UTC
Created attachment 118310 [details]
Patch implementing rootdir option

This patch allows booting Fedora Core with all of it in a sub directory. It can
be used in the following way.

1. Create a new initrd using the --rootdir option
2. Create a new directory on the partition I called it /FC4
3. Move everything (except from FC4 and lost+found) from the root into FC4
4. Boot using the new initrd and add ROOTDIR=/sysroot/FC4 to the command line.

Probably parts of this can be done in a nicer way if a few features were added
to nash.

Comment 2 Kasper Dupont 2005-08-31 16:52:09 UTC
I should add that the purpose of this option is to allow booting multiple
installations without requiring a seperate root partition for each. My laptop
currently have FC1, FC2, and FC4 all installed on the same partition.

When moving the installation as described above it shouldn't be done from within
the running system. When I needed to move FC4 I first booted into FC2.
Eventually the installer could be modified to allow installing directly into a
sub directory.

Comment 3 Kasper Dupont 2006-08-20 09:39:58 UTC
Created attachment 134523 [details]
Implementation for FC5

Here is an improved patch for mkinitrd-5.0.32-1. I will verify if it applies to
FC6 and rawhide as well.

Comment 4 Christian Iseli 2007-01-22 11:07:11 UTC
This report targets the FC3 or FC4 products, which have now been EOL'd.

Could you please check that it still applies to a current Fedora release, and
either update the target product or close it ?


Comment 5 Kasper Dupont 2007-01-22 19:23:23 UTC
Created attachment 146210 [details]
Implementation for FC6

Comment 6 Kasper Dupont 2007-01-22 19:28:51 UTC
The attached patch works with FC6. It has not been tested as thoroughly as the
FC5 version, but there are essentially no changes from the previous version.

Comment 7 Kasper Dupont 2007-01-23 05:03:45 UTC
Looks like bugzilla will not let me change status from NEEDINFO unless I write
another comment.

Comment 8 Kasper Dupont 2007-12-30 20:06:18 UTC
Created attachment 290556 [details]
Implementation for Fedora 8

I'd still like to see this feature in mainline. This feature makes it a lot
easier for me to setup systems to dualboot between different versions of
Fedora. The attached implementation for Fedora 8 is just an updated version of
the patch which has been working flawlessly since Fedora 5.

Comment 9 Bug Zapper 2008-11-26 06:52:15 UTC
This message is a reminder that Fedora 8 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 8.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '8'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 8's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 8 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 

Comment 10 Bug Zapper 2009-01-09 06:53:55 UTC
Fedora 8 changed to end-of-life (EOL) status on 2009-01-07. Fedora 8 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 11 Kasper Dupont 2009-01-09 10:14:31 UTC
Created attachment 328533 [details]
For F10

Comment 12 Peter Jones 2009-02-17 19:28:07 UTC
I'd really rather not add this as a mkinitrd feature.  You should propose this as a feature for dracut ( development list at initramfs@vger.kernel.org ), which we hope to move to in the future.

Note You need to log in before you can comment on or make changes to this bug.