[opensuse-autoinstall] use "partitioning_advanced" to define /etc/fstab for an autoyast-install of a clean Xen DomU?
hi, i'm trying to get autoyast to use a defined /etc/fstab to setup a Xen DomU. reading @, "4.4.6. Using existing mount table (fstab)" http://www.suse.de/~ug/autoyast_doc/CreateProfile.Partitioning.html i've created a simple autoyast config, cat test.xml <?xml version="1.0"?> <!DOCTYPE profile> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <partitioning_advanced> <fstab> <root_partition>/dev/xvdc1</root_partition> <use_existing_fstab config:type="boolean">true</use_existing_fstab> <partitions config:type="list"> <partition> </partition> </partitions> </fstab> </partitioning_advanced> </profile> i've placed, cat /etc/fstab /dev/xvdb1 swap swap defaults 0 0 /dev/xvdc1 / ext3 acl,user_xattr 1 1 /dev/xvda1 /boot ext3 acl,user_xattr 1 2 proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 debugfs /sys/kernel/debug debugfs noauto 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 onto, /dev/VGU/vroot -> /etc/fstab my DomU cfg contains cat test.cfg ... disk = [ 'phy:/dev/VGU/vboot,xvda1,w', 'phy:/dev/VGU/vswap,xvdb1,w', 'phy:/dev/VGU/vroot,xvdc1,w', ] root = '/dev/xvdc1' extra = 'autoyast=nfs://.../test.xml ...' ... @ domU init/launch, xm create -c test.cfg the installer's invoked, as usual, but i get, "no linux root partition found" @ the link above, i note, "The found partitions will be formatted and mounted as specified in /etc/fstab found on a Linux root partition" since i'm creating a new Xen DomU, there's no clearly _existing_ linux root partition in the DomU how, in autoyast, can i get the DomU installer to mount & use the vfb's phy: devices for the install as defined in "an" /etc/fstab passed to it? thanks. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Sunday 03 May 2009 19:18:52 PGNet Dev wrote:
since i'm creating a new Xen DomU, there's no clearly _existing_ linux root partition in the DomU
how, in autoyast, can i get the DomU installer to mount & use the vfb's phy: devices for the install as defined in "an" /etc/fstab passed to it?
it's not that easy. Autoyast recycles some code of the system updater to detect a root partition with an /etc/fstab. Unfortunately that code checks a lot more than just the existence of the fstab file, like the installed architecture, the installed suse-release and so on. Just an fstab is not enough. I see room for enhancement there :) -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
hi, On Tue, May 5, 2009 at 2:50 AM, Uwe Gansert <ug@suse.de> wrote:
how, in autoyast, can i get the DomU installer to mount & use the vfb's phy: devices for the install as defined in "an" /etc/fstab passed to it?
it's not that easy. Autoyast recycles some code of the system updater to detect a root partition with an /etc/fstab. Unfortunately that code checks a lot more than just the existence of the fstab file, like the installed architecture, the installed suse-release and so on. Just an fstab is not enough. I see room for enhancement there :)
thanks for clarifying. fwiw, this is an issue/challenge only if trying to use pre-formatted LVMs created in the Dom0 _as_ the drives in the DomU. i.e., passing the disks as phy:.../xvda1. for that to work -- without other hoops to jump through -- the fstab needs to be there. i _do_ understand that i can pre-populate those formatted LVMs with the typical root dir tree beforehand, but, when trying to keep DomU's "thin" there's often too much copied. one option is to keep a minimal-spin around, and copy from _that_. just more work that ideally needs to be done. of course, passing the LVMs in as physical devices, i.e. as phy:.../xvda, and letting autoyast create/format subpartitions, e/g/ /dev/xvda1, works perfectly. like you said, perhaps a future enhancement ... thanks! -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Tuesday 05 May 2009 PGNet Dev wrote:
like you said, perhaps a future enhancement ...
the check for root partitions is a lot less strict on openSUSE 11.2 now. An /etc/fstab file and an empty /proc directory should be enough now for <partitioning_advanced> to accept the root partition. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
hi uwe, On Thu, May 14, 2009 at 2:16 AM, Uwe Gansert <ug@suse.de> wrote:
like you said, perhaps a future enhancement ...
the check for root partitions is a lot less strict on openSUSE 11.2 now. An /etc/fstab file and an empty /proc directory should be enough now for <partitioning_advanced> to accept the root partition.
good to know, thanks. as i'm not enough of a glutton for punishment to switch _completely_ to Factory just yet, is there a 11.1-backported repo that might contain just the aforementioned changes? thanks. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
on Thursday 14 May 2009 PGNet Dev wrote:
the check for root partitions is a lot less strict on openSUSE 11.2 now. An /etc/fstab file and an empty /proc directory should be enough now for <partitioning_advanced> to accept the root partition.
good to know, thanks.
as i'm not enough of a glutton for punishment to switch _completely_ to Factory just yet, is there a 11.1-backported repo that might contain just the aforementioned changes?
I have uploaded a driverupdate to my homepage: http://www.suse.de/~ug/download/ Issues fixed for i586 and x86_64: - don't change partition id of reused partitions - classes did not work without rules anymore - partitioning_advanced is less strict when looking for root partitions can you please test it? I did not do a lot of testing on my own. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Business: http://www.suse.de/~ug -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (2)
-
PGNet Dev
-
Uwe Gansert