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
31b1dfdb
Verified
Commit
31b1dfdb
authored
Aug 12, 2020
by
nl6720
Browse files
archiso/mkarchiso: delete all files in /boot not just the kernel and initramfs
There is nothing useful in /boot for the live system.
parent
7c2247f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
archiso/mkarchiso
View file @
31b1dfdb
...
...
@@ -187,13 +187,9 @@ _pacman () {
_cleanup
()
{
_msg_info
"Cleaning up what we can on airootfs..."
# Delete
initcpio image(s)
# Delete
all files in /boot
if
[[
-d
"
${
airootfs_dir
}
/boot"
]]
;
then
find
"
${
airootfs_dir
}
/boot"
-type
f
-name
'*.img'
-delete
fi
# Delete kernel(s)
if
[[
-d
"
${
airootfs_dir
}
/boot"
]]
;
then
find
"
${
airootfs_dir
}
/boot"
-type
f
-name
'vmlinuz*'
-delete
find
"
${
airootfs_dir
}
/boot"
-mindepth
1
-delete
fi
# Delete pacman database sync cache files (*.tar.gz)
if
[[
-d
"
${
airootfs_dir
}
/var/lib/pacman"
]]
;
then
...
...
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