main/postmarketos-mkinitfs: Avoid storing initramfs-extra twice
At the moment we store the same initramfs-extra twice on the file system:
/boot/initramfs-<flavor>-extra
/var/cache/postmarketos-mkinitfs/initramfs-<flavor>-extra_<hash>
The second copy is exactly the same file, just with the <hash>
(for caching)
appended to the filename.
We can avoid this by appending the hash directly to the filename on the boot partition, i.e.
/boot/initramfs-<flavor>-extra_<hash>
This is possible because we only reference initramfs-extra from the main
initramfs, and we already replace the path in it dynamically.
It will just let the main initramfs load -extra_<hash>
instead of just -extra
.
This saves a few megabytes of disk space on the rootfs.
Cc: @drebrez
Merge request reports
Activity
added 8 commits
-
f34c2f85...eab19e84 - 7 commits from branch
postmarketOS:master
- 006a852d - main/postmarketos-mkinitfs: avoid storing initramfs-extra twice (!932 (merged))
By Alexey Min on 2020-02-09T22:14:26
-
f34c2f85...eab19e84 - 7 commits from branch
added 2 commits
-
a415548b - 1 commit from branch
postmarketOS:master
- 24fa68c9 - main/postmarketos-mkinitfs: avoid storing initramfs-extra twice (!932 (merged))
By Alexey Min on 2020-02-09T22:38:32
-
a415548b - 1 commit from branch
enabled an automatic merge when the pipeline for 24fa68c9 succeeds
By Alexey Min on 2020-02-09T22:38:55
mentioned in issue pmbootstrap#1624 (closed)
By Minecrell on 2020-02-09T23:04:30
mentioned in commit 24fa68c9
By Minecrell on 2020-02-11T20:33:56
mentioned in issue pmbootstrap#487 (closed)
By Minecrell on 2020-03-07T19:24:02