Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kristian Klausen
arch-boxes
Commits
c97486b2
Commit
c97486b2
authored
Jan 30, 2021
by
Kristian Klausen
🎉
Browse files
Use --reflink=always when copying the fallback initramfs
It saves us ~20MB.
parent
05c8cd6e
Pipeline
#4997
passed with stages
in 29 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
build-inside-vm.sh
View file @
c97486b2
...
...
@@ -92,7 +92,7 @@ function image_cleanup() {
# So for the initial install we use the fallback initramfs, and
# "autodetect" should add the relevant modules to the initramfs when
# the user updates the kernel.
cp
-a
"
${
MOUNT
}
/boot/"
{
initramfs-linux-fallback.img,initramfs-linux.img
}
cp
--reflink
=
always
-a
"
${
MOUNT
}
/boot/"
{
initramfs-linux-fallback.img,initramfs-linux.img
}
sync
-f
"
${
MOUNT
}
/etc/os-release"
fstrim
--verbose
"
${
MOUNT
}
"
...
...
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