summaryrefslogtreecommitdiff
path: root/archiso/initcpio/hooks/archiso_pxe_common
AgeCommit message (Collapse)Author
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=dhcpupstreamMasterDavid 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>