refactor(os): Remove existing initramfs fallback files when we remove them from build instructions (#1)

This commit is contained in:
hygienic-books 2023-02-21 00:38:55 +01:00
parent 6cee2ab403
commit 23ca5f0c65

View File

@ -269,6 +269,9 @@ function set_initramfs_build_list () {
-e '/^fallback/d' \
-e 's'$'\x1''^(PRESETS=)[^\r\n\f]*'$'\x1''\1('"'"'default'"'"')'$'\x1''g' \
'/mnt/etc/mkinitcpio.d/linux.preset'
# Remove any existing fallback initramfs files
find '/mnt/boot' -type f -regextype posix-extended -iregex '^/mnt/boot/initramfs-.*?-fallback.img' -delete
}
function add_zfs_files_to_new_os () {