Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/hooks/archiso_pxe_common
AgeCommit message (Collapse)Author
2021-04-30Ignore SC3060 in initcpio hookDavid Runge
archiso/initcpio/hooks/archiso_pxe_common: Disable shellcheck's SC3060, as ash is able to do bash-like string replacements.
2021-01-26archiso_pxe_common: remove resolv.conf before copyChristian Hesse
Booting via PXE we want to keep our DNS configuration. So remove /etc/resolv.conf in new root before copying the current file. Without this systemd-resolved fallback nameservers are used and we see an error message when the root ships a symbolic link to systemd-resolved's stub-resolv.conf: cp: not writing through dangling symlink '/new_root/etc/resolv.conf'
2020-11-18Reset network interfaces at the end of the PXE boot to allow DHCP to runfdupoux
2020-07-29Add license and basic documentationDavid Runge
LICENSE: Add GPL-3.0 license. {{archiso,configs}/*,.editorconfig,.gitlab-ci.yml}: Add SPDX license identifier. Makefile: Add SPDX license identifier. Install the `run_archiso.sh` script as global executable `run_archiso`. Use -D and -t flags to install to install files more generically (without a previous call to install the directory). README.rst: Add README outlining the project's scope, how to build images from the profiles and how to test. AUTHORS.rst: Add list of all direct contributors to the repository. CONTRIBUTING.rst: Add basic contribution guidelines, explaining the linter and the license in use. Closes #7 Closes #3
2020-07-17Separate custom comments from shellcheck commentsnl6720
Having a shellcheck directive and custom comments in the same line can trigger SC1107 on old versions of shellcheck.
2020-07-11Adding linting for initcpio scriptsDavid Runge
archiso/initcpio/install/*: Setting bash shebang for all scripts and making them comform with shellcheck. archiso/initcpio/{hooks,script}/*: Setting ash shebang for all scripts and making them comform with shellcheck (for dash, as shellcheck has no ash specific ruleset). Essentially the ash based scripts should be POSIX compliant as much as possible to have an easier time writing, debugging and maintaining them. Ensuring that variables are not treated as options and introducing variable quoting. .gitlab-ci.yml: Integrating shellcheck for initcpio scripts. Closes #32
2017-03-14Handle case where ip=dhcpDavid Thurstenson
Signed-off-by: David Thurstenson <thurstylark@gmail.com>
2017-03-14Add timeout to ipconfig callDavid Thurstenson
Signed-off-by: David Thurstenson <thurstylark@gmail.com>
2016-09-29pxe-common: not only search, but also domain entry in resolv.confChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-09-29pxe-common: add dns domain name in resolv.confChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-09-29pxe-common: add a comment what added settings to resolv.confChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-05-28flush and set down only if boot interface is knownChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-05-27do not declare bootif_dev localChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-05-27use ip syntax according to ip-address(8)Christian Hesse
According to ip-address(8) flushing an interface requires the keyword 'dev'. Also add proper quoting. Signed-off-by: Christian Hesse <mail@eworm.de>
2016-05-24only run pxe late hook if $ip is givenChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2016-03-18[archiso] Set net iface down if copytoram=y (default)Gerardo Exequiel Pozzi
This should fix FS#36749 Also flush address on specified device (default) Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
2015-06-24flush ip addresses after copy to RAMChristian Hesse
We received an IP address from DHCP server and configure it statically. This is required if we continue to use network connectivity to access the root device (for example via NBD or NFS). The lease is not updated, though. This can cause trouble in networks with low lease times. So let's flush the addresses if root filesystem has been copied to RAM. A dhcp client in main system can handle the network connectivity then. Signed-off-by: Christian Hesse <mail@eworm.de>
2015-05-29launch interactive shell if ipconfig failsChristian Hesse
Signed-off-by: Christian Hesse <mail@eworm.de>
2012-08-25[archiso] Rework Makefile / Reorder filesGerardo Exequiel Pozzi
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>