main/postmarketos-mkinitfs: check if initramfs-extra is missing (!1046)
This commit is contained in:
parent
36a2e78c2c
commit
de6deb8201
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
pkgname=postmarketos-mkinitfs
|
||||
pkgver=0.10.0
|
||||
pkgver=0.10.1
|
||||
pkgrel=0
|
||||
pkgdesc="Tool to generate initramfs images for postmarketOS"
|
||||
url="https://postmarketos.org"
|
||||
|
@ -26,4 +26,4 @@ package() {
|
|||
|
||||
sha512sums="1d49db8a48ad513cc548b8a0ea23cc64518e71c93863155b4e9d2271fb46090506331c03d6955d693c8568c248ecc76b218efe4a6f6bba57c41c5f6d775dc61b init.sh.in
|
||||
315cc6e8a73f9984e6843395d68734d26ac2fffce34039ec5f229ebcd818bdb353318398d6c824cede5d0b36e13d7589a1f1d3295d8162279b5dc6a2b939da88 init_functions.sh
|
||||
7f7e32588a3658f707a483e2a14ec20396dfabd25f5e86ef2be3055e05ddafcba1285dc9b233c4cdf47424eb71f35dfdc8fd2dc92ff0c76b970981bdfc576475 mkinitfs.sh"
|
||||
ca5689a3b15ccec4249b1c1fe110956b7119a7d159a289ac312b05447f2a469b8ec7731b6d29e0b232374eb4379cd1426b556dc31f09bd14b6fc6d1ae751b0c9 mkinitfs.sh"
|
||||
|
|
|
@ -356,7 +356,7 @@ generate_initramfs_extra()
|
|||
initfs_extra_hash="$(echo "$initfs_extra_files_hashes" | md5sum | awk '{ print $1 }')"
|
||||
|
||||
# The hash is appended to the initramfs, check if up-to-date
|
||||
if [ "$initfs_extra_hash" != "$(tail -c 32 "$1")" ]; then
|
||||
if [ ! -f "$1" ] || [ "$initfs_extra_hash" != "$(tail -c 32 "$1")" ]; then
|
||||
# Set up initramfs-extra in temp folder
|
||||
tmpdir_extra=$(mktemp -d /tmp/mkinitfs.XXXXXX)
|
||||
mkdir -p "$tmpdir_extra"
|
||||
|
|
Loading…
Add table
Reference in a new issue