This commit is contained in:
Patrick Schleizer 2023-01-07 15:03:06 -05:00
parent 059ebb212d
commit 06034d2e4f
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -20,9 +20,6 @@ cmdline=$(cat /proc/cmdline)
kernel=$(echo "$cmdline" | grep -o 'BOOT_IMAGE=\S*' | cut -d '=' -f 2)
initrd=$(echo "$kernel" | sed "s#vmlinuz#initrd.img#")
kernel="/boot/$kernel"
initrd="/boot/$initrd"
if test -e $initrd; then
echo "Initrd File Found"
else