Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Fix PXE booting helium#1

Merged
dmbaturin merged 3 commits intoheliumfrom
unknown repository
Sep 7, 2016
Merged

Fix PXE booting helium#1
dmbaturin merged 3 commits intoheliumfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Sep 4, 2016

So if one naively tries to boot vyos over PXE by copying the append line in the isolinux config and then adding fetch=http://foo/filesystem.squashfs, one gets a kernel panic, presumably because the shell exits or crashes.

After much debugging, it turns out that the code that deals with fetch= does not setup networking first, so it never succeeds.

This pull request fixes that.

I also noticed that tftp:// URLs to fetch= were broken, so I backported the fix.

Davide Gianino added 3 commits September 3, 2016 08:39
This fixes using fetch= to load filesystem.squashfs over HTTP.

You can tell do_netmount in scripts/live needs DEVICE to be set,
but the only place it is ever set is in configure_networking()
and that's not called anywhere in the code. That's a bug.

This is the essentially the same fix used in recent versions of this
package: at the top of do_netmount there is a call to do_netsetup which
is pretty much a renamed configure_networking.

I can't help but wonder if this ever worked at all in Debian. Anyway.
Original code is broken and will not parse e.g.:

tftp://192.168.0.1/vyos/filesystem.squashfs

correctly.

This was lifted from a more recent version of this script
in a newer package.
@dmbaturin
Copy link
Contributor

Looks good at a glance. I guess we really should do 1.1.8 release before 1.2.0, with this included.

@dmbaturin dmbaturin merged commit 0f92205 into vyos-legacy:helium Sep 7, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant