diff --git a/41_snapshots-btrfs b/41_snapshots-btrfs index e5d987b..a274a14 100644 --- a/41_snapshots-btrfs +++ b/41_snapshots-btrfs @@ -400,10 +400,8 @@ detect_initramfs() list_initramfs=() # Original initramfs (auto-detect) for oinitramfs in "${boot_dir}"/initrd.img-* \ - "${boot_dir}"/initrd-*.img \ - "${boot_dir}"/initrd-*.gz \ - "${boot_dir}"/initramfs-*.img \ - "${boot_dir}"/initramfs-*.gz ; do + "${boot_dir}"/initramfs-* \ + "${boot_dir}"/initrd-* ; do [[ ! -f "${oinitramfs}" ]] && continue; list_initramfs+=("$oinitramfs") done