two-images: construction reproductible de rocky10 et debian13 par Packer, test de démarrage syonad/two#53
Some checks failed
Tests / check (push) Failing after 39s
Some checks failed
Tests / check (push) Failing after 39s
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
commit
fe401b9a12
18 changed files with 937 additions and 0 deletions
9
packer/scripts/release.sh
Normal file
9
packer/scripts/release.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
mapfile -t filesystems < <(findmnt -rno TARGET,FSTYPE -R /mnt | awk '$2 == "ext4" || $2 == "xfs" || $2 == "vfat" { print $1 }')
|
||||
for fs in "${filesystems[@]}"; do
|
||||
fstrim -v "${fs}"
|
||||
done
|
||||
umount -R /mnt
|
||||
sync
|
||||
Loading…
Add table
Add a link
Reference in a new issue