fix initramfs not being fetched from system
This commit is contained in:
parent
a93693845d
commit
fb6e758009
1 changed files with 2 additions and 1 deletions
|
@ -77,12 +77,13 @@ if [ -f "/etc/default/grub" ];
|
||||||
then
|
then
|
||||||
# Currently we do not modify bootloaders, will ask users to do it instead
|
# Currently we do not modify bootloaders, will ask users to do it instead
|
||||||
#cp "/etc/default/grub" "$SCRIPTDIR/$DEFAULT/grub"
|
#cp "/etc/default/grub" "$SCRIPTDIR/$DEFAULT/grub"
|
||||||
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "/etc/initramfs-tools/modules" ];
|
if [ -f "/etc/initramfs-tools/modules" ];
|
||||||
then
|
then
|
||||||
# This copies /etc/initramfs-tools/modules without the vfio modules
|
# This copies /etc/initramfs-tools/modules without the vfio modules
|
||||||
grep -v "vfio" "/etc/initramfs-tools/modules" > "$SCRIPTDIR/$INITRAMFS"
|
grep -v "vfio" "/etc/initramfs-tools/modules" > "$SCRIPTDIR/$INITRAMFS/modules"
|
||||||
else
|
else
|
||||||
touch "$SCRIPTDIR/$INITRAMFS"
|
touch "$SCRIPTDIR/$INITRAMFS"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue