mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-24 15:16:42 +00:00
f6eed42208
prepare_thumb_drive: default to creating 10% LUKS container on usb drive, prompts for passphrase is not provided and scan drives if no --device specified NOTE: qemu usb_thumb drive of 128 mb are not big enough so that 10% of it (12mb) can be used to create thumb drive. Adds: - e2fsprogs to support ext4 filesystem creation through mke2fs - add /etc/mke2fs.conf so that mke2fs knows how to handle ext2/ext3/ext4 - removes mke2fs support from busybox - bump busybox to latest version which adds cpu accelerated hash functions (not needed per se here) - Adds exfatprogs to have mkfs.exfat and fsck.exfat - Adds prepare_thumb_drive /etc/luks-functions to be able to prepare a thumb drive with percentage of drive assigned to LUKS, rest to exfat - Modify most board configs to test space requirements failing - Talos2 linux config: add staging Exfat support - Make e2fsprogs and exfatprogs included by default unless explicitely deactivate in board configs - Change cryptsetup calls : luksOpen to open and luksClose to close to addresss review - etc/luks_functions: cleanup GOAL here is to have secure thumb drive creation which Heads will be able to use to backup/restore/use generated GPG key material in the future (next PR)
35 lines
1.2 KiB
Makefile
35 lines
1.2 KiB
Makefile
#Module is included unless defined in board to "n"
|
|
CONFIG_E2FSPROGS ?= y
|
|
modules-$(CONFIG_E2FSPROGS) += e2fsprogs
|
|
|
|
e2fsprogs_version := 1.47.0
|
|
e2fsprogs_dir := e2fsprogs-$(e2fsprogs_version)
|
|
e2fsprogs_tar := e2fsprogs-$(e2fsprogs_version).tar.xz
|
|
e2fsprogs_url := https://mirrors.edge.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v$(e2fsprogs_version)/$(e2fsprogs_tar)
|
|
e2fsprogs_hash := 144af53f2bbd921cef6f8bea88bb9faddca865da3fbc657cc9b4d2001097d5db
|
|
|
|
# For reproducibility reasons we have to override the exec_prefix
|
|
# and datarootdir on the configure line so that the Makefiles will
|
|
# be generated with the correct paths, but then re-write them when
|
|
# we use the install target so that they will be copied to the correct
|
|
# location.
|
|
e2fsprogs_configure := \
|
|
$(CROSS_TOOLS) \
|
|
CFLAGS="-Os" \
|
|
./configure \
|
|
--host $(MUSL_ARCH)-linux-musl \
|
|
--prefix "" \
|
|
--libexecdir "/bin" \
|
|
|
|
# Run one build to generate the executables with the pre-defined
|
|
# exec_prefix and datarootdir, then a second make to install the binaries
|
|
# into our actual target location
|
|
e2fsprogs_target := $(MAKE_JOBS) \
|
|
&& $(MAKE) -C $(build)/$(e2fsprogs_dir) \
|
|
DESTDIR="$(INSTALL)" \
|
|
install
|
|
|
|
e2fsprogs_output := misc/mke2fs
|
|
|
|
e2fsprogs_depends := $(musl_dep)
|