e264b44682
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
21 lines
433 B
Bash
21 lines
433 B
Bash
#!/usr/bin/env bash
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
build() {
|
|
add_binary cp
|
|
|
|
add_runscript
|
|
|
|
add_file /usr/lib/initcpio/archiso_shutdown /shutdown
|
|
}
|
|
|
|
help() {
|
|
cat <<HELPEOF
|
|
This hook will create a shutdown initramfs in /run/initramfs
|
|
that we can pivot to on shutdown in order to unmount / and
|
|
and other mount points, dm-snapshot and loopback devices.
|
|
Mostly useful for persistent dm-snapshot.
|
|
HELPEOF
|
|
}
|