Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
0a403791
Commit
0a403791
authored
Feb 19, 2022
by
Antoine Kaufmann
Browse files
images: run fstrim in guest to reduce image size
parent
e957c4bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
images/scripts/cleanup.sh
images/scripts/cleanup.sh
+3
-0
No files found.
images/scripts/cleanup.sh
View file @
0a403791
...
...
@@ -21,3 +21,6 @@ find /var/log -type f | while read f; do echo -ne '' > "${f}"; done;
>
/var/log/lastlog
>
/var/log/wtmp
>
/var/log/btmp
# Finally trim unused file system blocks to reduce image size
fstrim
-av
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