Skip to content

Commit 8db8ef5

Browse files
liulis-sganujm1
andauthored
[Tink] Retain specified files and directorie to rootfs for emt-tink image (#122)
Retain /usr/share/p11-kit/* as it stores the p11-kit modules Retain /usr/share/licenses/* Retain grub related files in /boot Co-authored-by: Anuj Mittal <anuj.mittal@intel.com>
1 parent e5b82e5 commit 8db8ef5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

toolkit/imageconfigs/scripts/generate-tink-initramfs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ function generate_images() {
2525

2626
tar -xvf "/tmp/$arfname.tar.gz" -C "$outputdir" --strip-components=2 --wildcards ./boot/vmlinuz-*.emt3 ./boot/initramfs-*.emt3.img
2727
gunzip -f "/tmp/$arfname.tar.gz"
28-
tar -vf "/tmp/$arfname.tar" --delete ./tmp ./boot
28+
tar -vf "/tmp/$arfname.tar" --delete ./tmp
29+
tar -vf "/tmp/$arfname.tar" --delete --wildcards ./boot/vmlinuz-*.emt3 ./boot/initramfs-*.emt3.img ./boot/System.map-*.emt3 ./boot/config-*.emt3
2930
gzip -f "/tmp/$arfname.tar"
3031
#cp "/tmp/$arfname.tar.gz" "$outputdir"
3132

toolkit/imageconfigs/scripts/setup-tink-image.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ find /usr/share -type f \
2929
! -path "/usr/share/dbus-1/system.conf" \
3030
! -path "/usr/share/caddy/*" \
3131
! -path "/usr/share/pki/*" \
32+
! -path "/usr/share/p11-kit/*" \
33+
! -path "/usr/share/licenses/*" \
3234
-exec rm -f {} +
3335
echo "$pprefix: reduced $(du -h /usr/share)"
3436

0 commit comments

Comments
 (0)