Commit 4ca5225d authored by Ophélie Gagnard's avatar Ophélie Gagnard

Improve install.sh

parent 3d735f6c
# This script assumes to be run by the root user (with /sbin in the path).
# Install the module
cd dracut.module
make uninstall
make install
cd -
# note: on the capri002 (as of the time those lines are wrote):
# OS disk: 250GB, /dev/nvme1n1
# /dev/nvme1n1p1 efi partition
......@@ -17,9 +23,13 @@ TARGET_ROOT_PARTITION=${TARGET_DISK}p2
# why?
e2label $TARGET_ROOT_PARTITION ROOT
# TMP: Delete bootnum 0 so that there is only one boot option for an image created by this script
efibootmgr -b 0 -B
# Create an initramfs image
dracut -c ./dracut.module/dracut.conf --force
# Why? The boot manager seems to forget the boot option if this is not done.
cp -r /boot/efi/EFI /EFI
# Set the image as a boot option
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment