mkinitfs silently fails if it cannot remove the working directory
Describe your issue
reported in chat, on oneplus3t:
# apk fix
The following packages will be reinstalled:
postmarketos-mkinitfs
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
(1/1) Reinstalling postmarketos-mkinitfs (2.2-r1)
Executing postmarketos-mkinitfs-2.2-r1.post-upgrade
Cleaning up old boot files...
Executing busybox-1.36.1-r5.trigger
Executing postmarketos-mkinitfs-2.2-r1.trigger
10:06:03.802362 Generating for kernel version: 6.3.1-msm8996
10:06:03.804687 Output directory: /boot
10:06:03.804976 Unknown or no compression format set, using gzip
10:06:03.805178 == Generating initramfs ==
10:06:03.805703 - Using compression format gzip with level "default"
10:06:03.806513 - Searching for directories specified in /usr/share/mkinitfs/dirs
10:06:03.808106 -- Creating directories from: /usr/share/mkinitfs/dirs/00-initramfs-base.dirs
10:06:03.813428 - Searching for directories specified in /etc/mkinitfs/dirs
10:06:03.814177 - Searching for file lists from /usr/share/mkinitfs/files
10:06:03.841728 -- Including files from: /usr/share/mkinitfs/files/00-device-oneplus-oneplus3t-modules.files
10:06:03.844177 -- Including files from: /usr/share/mkinitfs/files/00-initramfs-base.files
10:06:03.860698 -- Including files from: /usr/share/mkinitfs/files/20-adreno-gpu-firmware.files
10:06:03.875044 -- Including files from: /usr/share/mkinitfs/files/30-postmarketos-bootsplash.files
10:06:03.885814 - Searching for file lists from /etc/mkinitfs/files
10:06:03.887205 - Searching for hook scripts from /usr/share/mkinitfs/hooks
10:06:03.887580 - Searching for hook scripts from /etc/mkinitfs/hooks
10:06:03.890421 - Searching for kernel modules from /usr/share/mkinitfs/modules
10:06:03.891104 -- Including modules from: /usr/share/mkinitfs/modules/00-default.modules
10:06:03.948227 -- Including modules from: /usr/share/mkinitfs/modules/00-device-oneplus-oneplus3t.modules
10:06:03.963968 - Searching for kernel modules from /etc/mkinitfs/modules
10:06:06.954317 initramfs completed in: 3.14s
10:06:06.954444 Unknown or no compression format set, using gzip
10:06:06.954538 == Generating initramfs-extra ==
10:06:06.954780 - Using compression format gzip with level "default"
10:06:06.955791 - Searching for file lists from /usr/share/mkinitfs/files-extra
10:06:06.956800 -- Including files from: /usr/share/mkinitfs/files-extra/00-initramfs-extra-base.files
10:06:07.038083 - Searching for file lists from /etc/mkinitfs/files-extra
10:06:07.038543 - Searching for hook scripts from /usr/share/mkinitfs/hooks-extra
10:06:07.038967 - Searching for hook scripts from /etc/mkinitfs/hooks-extra
10:06:07.040676 - Searching for kernel modules from /usr/share/mkinitfs/modules-extra
10:06:07.043696 - Searching for kernel modules from /etc/mkinitfs/modules-extra
10:06:08.863619 initramfs-extra completed in: 1.91s
10:06:08.863850 == Using boot-deploy to finalize/install files ==
==> kernel: device-tree blob operations
==> kernel: appending device-tree qcom/msm8996pro-oneplus3t-s6e3fa5
==> initramfs: creating boot.img
==> Checking free space at /boot
... OK!
==> Installing: /boot/initramfs
==> Installing: /boot/initramfs-extra
==> Installing: /boot/vmlinuz-dtb
==> Installing: /boot/boot.img
10:06:15.768078 boot-deploy completed in: 6.90s
10:06:15.775615 mkinitfs completed in: 11.98s
ERROR: postmarketos-mkinitfs-2.2-r1.trigger: script exited with error 1
OK: 2037 MiB in 908 packages
/ #
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v23.06
-
v22.12
(Supported until 2023-07-06) -
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
-
GNOME Shell on Mobile -
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) Please post the output of sxmo_version.sh
-
Other: Please fill out
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
Additional information
Edited by Administrator