diff options
| author | Jonathan Bauer | 2018-03-06 14:26:07 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2018-03-06 14:26:07 +0100 |
| commit | ff60820c9a2c14ca9a14a0787f3b57007cff2119 (patch) | |
| tree | 4d1a0b31f6791fde86119bb8a9f0dea476a65eb5 /builder/modules.d/openslx_tmp_format/module-setup.sh | |
| parent | add VLAN support (diff) | |
| download | systemd-init-ff60820c9a2c14ca9a14a0787f3b57007cff2119.tar.gz systemd-init-ff60820c9a2c14ca9a14a0787f3b57007cff2119.tar.xz systemd-init-ff60820c9a2c14ca9a14a0787f3b57007cff2119.zip | |
new module to format newroot's /tmp
Uses SLX_TMP_PARTITION_IDENTIFIER from the openslx configuration file to detect which partition to format.
Formatting is done either by the command in SLX_TMP_PARTITION_FILESYSTEM_CREATE_COMMAND, if set, or by either mkfs.xfs or mkfs.ext4 as fallbacks
Diffstat (limited to 'builder/modules.d/openslx_tmp_format/module-setup.sh')
| -rwxr-xr-x | builder/modules.d/openslx_tmp_format/module-setup.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/builder/modules.d/openslx_tmp_format/module-setup.sh b/builder/modules.d/openslx_tmp_format/module-setup.sh new file mode 100755 index 00000000..c20eb1dd --- /dev/null +++ b/builder/modules.d/openslx_tmp_format/module-setup.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +check() { + # Tell dracut that this module should only be included if it is required + # explicitly. + return 255 +} +depends() { + echo dnbd3-rootfs +} +install() { + # must be *after* the download of the openslx config + # which is currently 00-fetch-config.sh + inst_hook pre-mount 10 "$moddir/scripts/format_openslx_tmp.sh" + inst_multiple mkfs.xfs mkfs.ext4 +} |
