Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
nl6720
archiso
Commits
1a971096
Commit
1a971096
authored
Apr 01, 2021
by
Christian Hesse
😜
Committed by
David Runge
Apr 07, 2021
Browse files
mkarchiso: also add iso name in grub environment block
parent
09b6127f
Pipeline
#6337
passed with stages
in 45 minutes and 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.rst
View file @
1a971096
...
...
@@ -121,14 +121,14 @@ Optionally install archiso's mkinitcpio hooks:
Optional Features
=================
The iso image contains a grub environment block holding the iso version. This allows to
boot the iso image from grub
with a version specific cow directory to mitigate overlay clashes.
The iso image contains a grub environment block holding the iso
name and
version. This allows to
boot the iso image from grub
with a version specific cow directory to mitigate overlay clashes.
.. code:: grub
loopback loop archlinux.iso
load_env -f (loop)/arch/grubenv
linux (loop)/arch/boot/x86_64/vmlinuz-linux ... \
cow_directory=
archlinux
/${VERSION} ...
cow_directory=
${NAME}
/${VERSION} ...
initrd (loop)/arch/boot/x86_64/initramfs-linux-lts.img
Contribute
...
...
archiso/mkarchiso
View file @
1a971096
...
...
@@ -937,8 +937,9 @@ _make_version() {
_msg_info
"Creating files with iso version..."
printf
'%s\n'
"
${
iso_version
}
"
>
"
${
airootfs_dir
}
/version"
printf
'%s\n'
"
${
iso_version
}
"
>
"
${
isofs_dir
}
/
${
install_dir
}
/version"
printf
'%.1024s'
"
$(
printf
'# GRUB Environment Block\nVERSION=%s\n%s'
"
${
iso_version
}
"
\
"
$(
printf
'%0.1s'
"#"
{
1..1024
}
)
"
)
"
>
"
${
isofs_dir
}
/
${
install_dir
}
/grubenv"
printf
'%.1024s'
"
$(
printf
'# GRUB Environment Block\nNAME=%s\nVERSION=%s\n%s'
\
"
${
iso_name
}
"
"
${
iso_version
}
"
"
$(
printf
'%0.1s'
"#"
{
1..1024
}
)
"
)
"
\
>
"
${
isofs_dir
}
/
${
install_dir
}
/grubenv"
_msg_info
"Done!"
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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