diff options
author | David P <megver83@parabola.nu> | 2021-08-02 18:24:56 -0400 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2021-08-02 18:24:56 -0400 |
commit | 8b185792cce1c515d985e327741660207dd5a110 (patch) | |
tree | f3ec438c0fbcafee646fefa634edd3c113211b98 /parabolaiso/initcpio/hooks/parabolaiso_pxe_nfs | |
parent | e09959ed0aba19e6b7f6789c1c57632414c5ec4b (diff) |
sync with archiso
archiso:
0f3a83a (HEAD -> master, origin/master, origin/HEAD) Merge branch 'issues/47'
e589101 (origin/issues/47) gitlab-ci: Call renamed check target
874166e Makefile: Remove mkinitcpio-archiso specific targets
571ea81 README.rst: Remove initcpio, fix formatting
75d36d2 Remove mkinitcpio-archiso files
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'parabolaiso/initcpio/hooks/parabolaiso_pxe_nfs')
-rw-r--r-- | parabolaiso/initcpio/hooks/parabolaiso_pxe_nfs | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/parabolaiso/initcpio/hooks/parabolaiso_pxe_nfs b/parabolaiso/initcpio/hooks/parabolaiso_pxe_nfs deleted file mode 100644 index 815e33b..0000000 --- a/parabolaiso/initcpio/hooks/parabolaiso_pxe_nfs +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/ash -# -# SPDX-License-Identifier: GPL-3.0-or-later - -run_hook() { - # shellcheck disable=SC2154 - # defined via initcpio's parse_cmdline() - if [ -n "${ip}" ] && [ -n "${parabolaiso_nfs_srv}" ]; then - - parabolaiso_nfs_srv=$(eval echo "${parabolaiso_nfs_srv}") - - export mount_handler="parabolaiso_nfs_mount_handler" - fi -} - -parabolaiso_nfs_mount_handler() { - local mount_status - newroot="${1}" - mkdir -p "/run/parabolaiso/bootmnt" - msg ":: Mounting '${parabolaiso_nfs_srv}'" - # shellcheck disable=SC2154 - # defined via initcpio's parse_cmdline() - if [ -n "${parabolaiso_nfs_opt}" ]; then - nfsmount -o "${parabolaiso_nfs_opt}" "${parabolaiso_nfs_srv}" "/run/parabolaiso/bootmnt" - mount_status=$? - else - nfsmount "${parabolaiso_nfs_srv}" "/run/parabolaiso/bootmnt" - mount_status=$? - fi - if [ $mount_status -gt 0 ]; then - echo "ERROR: Mounting '${parabolaiso_nfs_srv}'" - echo " Falling back to interactive prompt" - echo " You can try to fix the problem manually, log out when you are finished" - launch_interactive_shell - fi - - if [ "${copytoram}" != "n" ]; then - copytoram="y" - fi - - parabolaiso_mount_handler "${newroot}" -} - -# vim: set ft=sh: |