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
022bbe6a
Commit
022bbe6a
authored
May 31, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
installation/:
- Stop copying the EFI directory. - Fix the variables locating the EFI material.
parent
223fe903
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
installation/env.sh
installation/env.sh
+6
-6
installation/install.sh
installation/install.sh
+6
-6
No files found.
installation/env.sh
View file @
022bbe6a
...
...
@@ -31,12 +31,12 @@ MCA_PACKAGE_URL=${URL_PATTERN}/${MCA_PACKAGE_FILE}
FLUENTBIT_PACKAGE_URL
=
${
URL_PATTERN
}
/
${
FLUENTBIT_PACKAGE_FILE
}
# used mainly in installation/install.sh and installation/uninstall.sh
SOURCE_EFI_DIR
=
/boot/efi/EFI
/
TARGET_EFI_DIR
=
/EFI
/
SOURCE_EFI_DIR
=
`
realpath
-m
$SOURCE_EFI_DIR
`
TARGET_EFI_DIR
=
`
realpath
-m
$TARGET_EFI_DIR
`
SOURCE_IMAGE_DIR
=
$SOURCE_EFI_DIR
/Linux/
TARGET_IMAGE_DIR
=
$TARGET_EFI_DIR
/Linux/
EFI_PARTITION_MOUNT_POINT
=
/boot/efi
/
RELATIVE_EFI_IMAGE_DIR
=
/EFI/Linux
/
EFI_IMAGE_DIR
=
${
EFI_PARTITION_MOUNT_POINT
}
/
${
RELATIVE_EFI_IMAGE_DIR
}
EFI_PARITITON_MOUNT_POINT
=
$(
realpath
-m
$EFI_PARTITION_MOUNT_POINT
)
RELATIVE_EFI_IMAGE_DIR
=
$(
realpath
-m
$RELATIVE_EFI_IMAGE_DIR
)
EFI_IMAGE_DIR
=
$(
realpath
-m
$EFI_IMAGE_DIR
)
dracut_output_file
=
dracut-output
#TARGET_DISK=/dev/nvme1n1
...
...
installation/install.sh
View file @
022bbe6a
...
...
@@ -40,7 +40,7 @@ get_partition_id () {
root_partition_type
=
"Linux filesystem"
efi_partition_type
=
"EFI System"
TARGET_EFI_PARTITION
=
$(
get_partition_path
"
$efi_partition_type
"
)
EFI_PARTITION_MOUNT_POINT
=
$(
get_partition_path
"
$efi_partition_type
"
)
ROOT_PARTITION_ID
=
$(
get_partition_id
"
$root_partition_type
"
)
default_boot_num
=
100
...
...
@@ -63,13 +63,13 @@ efibootmgr -b "$default_boot_num" -B || true
rm
-f
$dracut_output_file
dracut
-c
./dracut.module/dracut.conf
--force
|&
tee
-a
$dracut_output_file
# the next line parses dracut output and extracts the path of the newly generated image
uefi_image_name
=
`
grep
"Creating image file"
$dracut_output_file
|
sed
-E
"s|.*
$
SOURCE
_IMAGE_DIR
(.*)'.*|
\1
|g"
`
uefi_image_name
=
`
grep
"Creating image file"
$dracut_output_file
|
sed
-E
"s|.*
$
EFI
_IMAGE_DIR
(.*)'.*|
\1
|g"
`
# Why? The boot manager seems to forget the boot option if this is not done.
mkdir
-p
$TARGET_EFI_DIR
cp
-rv
$SOURCE_EFI_DIR
/
*
$TARGET_EFI_DIR
#
mkdir -p $TARGET_EFI_DIR
#
cp -rv $SOURCE_EFI_DIR/* $TARGET_EFI_DIR
# Set the image as a boot option
efibootmgr
-b
"
$default_boot_num
"
--create
--disk
$
TARGET_EFI_PARTITION
--label
"test_deploy"
--loader
$TARGET_IMAGE_DIR
/
$uefi_image_name
efibootmgr
-b
"
$default_boot_num
"
--create
--disk
$
EFI_PARTITION_MOUNT_POINT
--label
"test_deploy"
--loader
${
RELATIVE_EFI_IMAGE_DIR
}
/
$uefi_image_name
echo
"New initramfs image: "
$
TARGET_IMAGE_DIR
/
$uefi_image_name
echo
"New initramfs image: "
$
{
EFI_IMAGE_DIR
}
/
$uefi_image_name
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