2023-12-25 05:27:11 +00:00
|
|
|
#!/bin/sh
|
2024-01-19 05:44:23 +00:00
|
|
|
# Copyright (C) 2023-2024 Umorpha Systems
|
2023-12-25 05:27:11 +00:00
|
|
|
# Copyright (C) 2023 Luke Shumaker
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2023-11-05 07:51:54 +00:00
|
|
|
# I tried erofs_compression=deflate, but I got:
|
2023-12-25 05:27:11 +00:00
|
|
|
#
|
2023-11-05 07:51:54 +00:00
|
|
|
# osi-mk [format:after] mkfs.erofs 1.7.1
|
|
|
|
# <W> erofs: EXPERIMENTAL DEFLATE algorithm in use. Use at your own risk!
|
|
|
|
# <W> erofs: *Carefully* check filesystem data correctness to avoid corruption!
|
|
|
|
# <W> erofs: Please send a report to <linux-erofs@lists.ozlabs.org> if something is wrong.
|
|
|
|
# osi-mk [format:after] Processing usr/lib/modules/6.5.7-gnu-1-vanilla/ke
|
|
|
|
# ../notsystemd-tests/osi-mk: line 424: 61541 Segmentation fault sudo --preserve-env=SOURCE_DATE_EPOCH mkfs.erofs -U"${arg_conf[fsuuid]}" ${arg_conf[erofs_compression]:+"-z${arg_conf[erofs_compression]}"} "$tmpdir/erofs.img" "$mount_dev"
|
|
|
|
#
|
|
|
|
# So stick with lz4 for now.
|
|
|
|
|
2023-12-25 05:27:11 +00:00
|
|
|
osi-mk \
|
2024-03-04 22:27:02 +00:00
|
|
|
--fmt=erofs \
|
|
|
|
--fmtconf=erofs_compression=lz4 \
|
2023-12-25 05:27:11 +00:00
|
|
|
--conf=hostname=thwomp.parabola.nu \
|
|
|
|
\
|
|
|
|
--package=base \
|
|
|
|
--package=linux-libre-vanilla \
|
|
|
|
\
|
|
|
|
--conf=bootloader=none \
|
|
|
|
--conf=genfstab=false \
|
2024-01-19 05:44:23 +00:00
|
|
|
--package=grub \
|
2023-12-25 05:27:11 +00:00
|
|
|
--package-file=pkg/umorpha-disk.pkg.tar.zst \
|
|
|
|
--module=modules/umorpha-disk.sh \
|
|
|
|
\
|
|
|
|
--module=modules/parabola-hackers.sh \
|
|
|
|
\
|
|
|
|
--module=modules/base-net.sh \
|
|
|
|
--module=modules/base-acme.sh \
|
|
|
|
\
|
|
|
|
--conf=SOURCE_DATE_EPOCH=auto \
|
|
|
|
--module=modules/base-reproducible.sh \
|
2023-11-05 07:51:54 +00:00
|
|
|
--module=modules/base-small.sh \
|
2023-12-25 05:27:11 +00:00
|
|
|
\
|
|
|
|
"$@"
|