mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add bcachefs.sh
This commit is contained in:
parent
8c256bf9b6
commit
7711cc21ea
4 changed files with 17 additions and 2 deletions
|
@ -10,6 +10,7 @@ LANG=C
|
|||
. /usr/lib/archboot/installer/autoconfiguration.sh
|
||||
. /usr/lib/archboot/installer/quicksetup.sh
|
||||
. /usr/lib/archboot/installer/blockdevices.sh
|
||||
. /usr/lib/archboot/installer/bcachefs.sh
|
||||
. /usr/lib/archboot/installer/bootloader.sh
|
||||
. /usr/lib/archboot/installer/bootloader_grub.sh
|
||||
. /usr/lib/archboot/installer/bootloader_limine.sh
|
||||
|
|
15
usr/lib/archboot/installer/bcachefs.sh
Normal file
15
usr/lib/archboot/installer/bcachefs.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# created by Tobias Powalowski <tpowa@archlinux.org>
|
||||
|
||||
# ask for bcachefs compress option
|
||||
_bcachefs_compress() {
|
||||
_BCACHEFS_COMPRESSLEVELS="zstd - lz4 - gzip - NONE -"
|
||||
#shellcheck disable=SC2086
|
||||
_dialog --no-cancel --title " Compression on ${_DEV} " --menu "" 10 50 4 ${_BCACHEFS_COMPRESSLEVELS} 2>"${_ANSWER}" || return 1
|
||||
if [[ "$(cat "${_ANSWER}")" == "NONE" ]]; then
|
||||
_BCACHEFS_COMPRESS="NONE"
|
||||
else
|
||||
_BCACHEFS_COMPRESS="$(cat "${_ANSWER}")"
|
||||
fi
|
||||
}
|
|
@ -424,7 +424,6 @@ _mkfs() {
|
|||
xfs) mkfs.xfs ${7} -L "${6}" -f ${1} &>"${_LOG}"; ret=$? ;;
|
||||
jfs) yes | mkfs.jfs ${7} -L "${6}" ${1} &>"${_LOG}"; ret=$? ;;
|
||||
ext2) mkfs.ext2 -F -L ${7} "${6}" ${1} &>"${_LOG}"; ret=$? ;;
|
||||
ext3) mke2fs -F ${7} -L "${6}" -t ext3 ${1} &>"${_LOG}"; ret=$? ;;
|
||||
ext4) mke2fs -F ${7} -L "${6}" -t ext4 ${1} &>"${_LOG}"; ret=$? ;;
|
||||
f2fs) mkfs.f2fs ${7} -f -l "${6}" \
|
||||
-O extra_attr,inode_checksum,sb_checksum ${1} &>"${_LOG}"; ret=$? ;;
|
||||
|
|
|
@ -170,7 +170,7 @@ _download_latest_task() {
|
|||
${_DLPROG} -o "${_RUN}/${i}" "${_SOURCE}${_RUN}/${i}?inline=false"
|
||||
done
|
||||
# setup libs
|
||||
LIBS="autoconfiguration.sh quicksetup.sh base.sh blockdevices.sh bootloader.sh \
|
||||
LIBS="autoconfiguration.sh quicksetup.sh base.sh bcachefs.sh blockdevices.sh bootloader.sh \
|
||||
bootloader_sb.sh bootloader_grub.sh bootloader_uki.sh bootloader_systemd_bootd.sh \
|
||||
bootloader_limine.sh bootloader_pacman_hooks.sh bootloader_refind.sh \
|
||||
bootloader_systemd_services.sh bootloader_uboot.sh btrfs.sh common.sh \
|
||||
|
|
Loading…
Reference in a new issue