[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [atomic-devel] PXE boot/install using root=live:http// tries to mount NFS

On 09/04/2015 03:21 PM, Mark Lamourine wrote:

----- Original Message -----
On Thu, Sep 3, 2015 at 10:41 PM, Mark Lamourine <markllama gmail com> wrote:
I'm working on a custom build of Atomic on F23 beta using the fedora atomic
configuration repo here:

ssh://markllama git fedorahosted org/git/fedora-atomic.git

I'm using rpm-ostree-toolbox treecompose and then installer to generate the
bootable components.

When I pxe boot using images/images/pxeboot/{vmlinuz,initrd.img} and
on the kernel cmdline to use root=live:http://.... sysroot fails to mount.

The target of the URL is a copy of the images/images/install.img squashfs

The URL is resolvable and I can download it to /tmp when in dracut.  I can
also mount it -o loop,ro and I can see the LiveOS directory inside which
appears to conform to the root=live convention.

It appears that only the NFS mount components are present and/or that the
root=live:http// input is not handled.  The sysroot.mount target attempts
mount the full URL as NFS and obviously fails.

Should this work?
Could it be that your initramfs is missing the dmsquash-live module?
IIRC it is not part of the default initramfs.

cat > /etc/dracut.conf.d/foo.conf <<EOF
add_dracutmodules+=" dmsquash-live "

And the regenerate the initramfs using dracut -f
Hrrm.  I didn't generate the initramfs manually, but using 'rpm-ostree-toolbox installer'. Any hints where I'd look to get that change into the installer code?

BTW, is that change something I could/should do on the build host (f23 beta) and which rpm-ostree-toolbox would inherit, or would it be set inside the build environment itself?

Does your configuration contain this change?


If so, you may also need to add
dmsquash-live (and maybe "livenet")

"initramfs-args": ["--no-hostonly", "--add", "iscsi"]

of the .json file, but because pxe booting Atomic installer with http used to work AFAIK [1], I would think the module has always been added when regenerating initrafs during build process and it is now just missing in your tree.

[1] Although when looking at my old PXE configurations I can see using
boot argument, no root=live:http:// but it does not mean root=live:http:// shouldn't work as well.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]