Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
initramfs-with-mca
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
initramfs-with-mca
Commits
4ca5225d
Commit
4ca5225d
authored
Mar 28, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve install.sh
parent
3d735f6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
install.sh
install.sh
+10
-0
No files found.
install.sh
View file @
4ca5225d
# This script assumes to be run by the root user (with /sbin in the path).
# 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):
# note: on the capri002 (as of the time those lines are wrote):
# OS disk: 250GB, /dev/nvme1n1
# OS disk: 250GB, /dev/nvme1n1
# /dev/nvme1n1p1 efi partition
# /dev/nvme1n1p1 efi partition
...
@@ -17,9 +23,13 @@ TARGET_ROOT_PARTITION=${TARGET_DISK}p2
...
@@ -17,9 +23,13 @@ TARGET_ROOT_PARTITION=${TARGET_DISK}p2
# why?
# why?
e2label
$TARGET_ROOT_PARTITION
ROOT
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
# Create an initramfs image
dracut
-c
./dracut.module/dracut.conf
--force
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
cp
-r
/boot/efi/EFI /EFI
# Set the image as a boot option
# Set the image as a boot option
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment