[opensuse-autoinstall] autoyast installation in Xen DomUs -- defining /etc/fstab ?
I'm setting up autoyast for autoinstall of Xen DomUs. Both Xen Host & Guests run Opensuse Leap 42.2.
From my Dom0 I pass pre-formatted, but not yet populated, LVMs as disks to the DomU config
guest.cfg
...
disk = [ 'phy:/dev/VG0/EFI,xvda,w','phy:/dev/VG0/ROOT,xvde,w']
...
I want my Guest /etc/fstab to end up as
UUID=AAAA-BBBB /boot/efi vfat [ ... efi fstab options ... ] 0 2
UUID=111...111 / ext4 [ ... root fstab options ... ] 1 1
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
My question is how 'best' to set the 'proc', 'sysfs', debugfs', 'devpts' mounts & their respective fstopts?
In the autoyast.xml that'll get passed to the xen.cfg, IIUC, I can use <partitioning> for the passed-in devices, with 'initialize', 'create' & 'format' all == "false",
<partitioning config:type="list">
<drive>
<device>/dev/xvda</device>
<initialize config:type="boolean">false</initialize>
<partitions config:type="list">
<partition>
<create config:type="boolean" >false</create>
<format config:type="boolean">false</format>
<mount>/boot/efi</mount>
<mountby config:type="symbol">uuid</mountby>
<fstopt>[ ... efi fstab options ... ]</fstopt>
<size>max</size>
<filesystem config:type="symbol">vfat</filesystem>
Am Montag, den 13.02.2017, 07:07 -0800 schrieb lssl@ssl-mail.com:
Both Xen Host & Guests run Opensuse Leap 42.2.
Cant answer your autoyast question. Since 42.x there is no need for such fstab entries anymore. Some component of systemd mount them automatically. The example you gave seem to be the defaults, which are also used by the systemd mount. Olaf
On Mon, Feb 13, 2017, at 08:30 AM, Olaf Hering wrote:
Cant answer your autoyast question.
Are you suggesting that there's no way to use Autoyast to fully specify & configure a Xen Guests's ftsab?
Since 42.x there is no need for such fstab entries anymore. Some component of systemd mount them automatically.
That's not entirely accurate. In fact, use of/etc/fstab is recommended/preferred: https://www.freedesktop.org/software/systemd/man/systemd.mount.html# fstab "Mount units may either be configured via unit files, or via /etc/fstab (see fstab(5) for details). Mounts listed in /etc/fstab will be converted into native units dynamically at boot and when the configuration of the system manager is reloaded. In general, configuring mount points through /etc/fstab is the preferred approach. See systemd-fstab-generator(8) for details about the conversion."
The example you gave seem to be the defaults, which are also used by the systemd mount.
And if you want to change those options? Or if you want to add/modify additional mounts , e.g., under "/" ? If autoyast isn't capable at all, I'll be quite suprised, but that's of course useful to know. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On Mon, Feb 13, lssl@ssl-mail.com wrote:
On Mon, Feb 13, 2017, at 08:30 AM, Olaf Hering wrote:
Cant answer your autoyast question. Are you suggesting that there's no way to use Autoyast to fully specify & configure a Xen Guests's ftsab?
No, I said I cant answer the autoyast question.
Since 42.x there is no need for such fstab entries anymore. Some component of systemd mount them automatically. "Mount units may either be configured via unit files, or via /etc/fstab (see fstab(5) for details). Mounts listed in /etc/fstab will be converted into native units dynamically at boot and when the configuration of the system manager is reloaded. In general, configuring mount points through /etc/fstab is the preferred approach. See systemd-fstab-generator(8) for details about the conversion."
I think that refers to block and network storage.
The example you gave seem to be the defaults, which are also used by the systemd mount. If autoyast isn't capable at all, I'll be quite suprised, but that's of course useful to know.
It certainly is. I'm sure there is some docu about autoyast and fstab. I just noticed you have included the autoinstall list, someone there is supposed to know the answer to your question. Olaf
participants (2)
-
lssl@ssl-mail.com
-
Olaf Hering