Bug 167213

Summary: Use sub directory as root file system
Product: [Fedora] Fedora Reporter: Kasper Dupont <bugzilla>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 10Keywords: FutureFeature, Patch, Reopened
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-17 19:28:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch implementing rootdir option
none
Implementation for FC5
none
Implementation for FC6
none
Implementation for Fedora 8
none
For F10 none

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):
mkinitrd-4.2.15-1

How reproducible:
Always

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 ?

Thanks.

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: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

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.org ), which we hope to move to in the future.