Discussion:
Bug#1089929: initramfs-tools: update-initramfs fails to generate initrd on arm64 (pinephone)
Add Reply
Enrique Garcia
2024-12-14 18:10:01 UTC
Reply
Permalink
Package: initramfs-tools
Version: 0.145
Severity: normal
X-Debbugs-Cc: ***@arcor.de

Dear Maintainer,

I have upgraded my pinephone which uses Debian testing and the last
apt upgrade failed while triggering the initramfs-tools with the
following message:

Processing triggers for initramfs-tools (0.145) ...
update-initramfs: Generating /boot/initrd.img-6.1-sunxi64
ln: failed to create symbolic link '/var/tmp/mkinitramfs_Ijij5N//usr/lib/aarch64-linux-gnu/dri/libdril_dri.so': File exists

I have not rebooted the device out of fear that it won't boot.

There was nothing unusual with the upgrade, just a normal apt upgrade.

Thank you!
-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 92M Nov 3 20:38 /boot/initrd.img-5.15-sunxi64
-rw-r--r-- 1 root root 93M Dec 14 18:48 /boot/initrd.img-6.1-sunxi64
-- /proc/cmdline
root=/dev/mapper/calamares_crypt consoleblank=0 loglevel=7 ro quiet splash plymouth.ignore-serial-consoles vt.global_cursor_default=0

-- /proc/filesystems
btrfs
ext3
ext2
ext4
fuseblk

-- lsmod
Module Size Used by
xt_CHECKSUM 16384 1
xt_tcpudp 20480 0
nft_chain_nat 16384 2
xt_MASQUERADE 20480 2
nf_nat 40960 2 nft_chain_nat,xt_MASQUERADE
nf_conntrack 126976 2 nf_nat,xt_MASQUERADE
nf_defrag_ipv6 24576 1 nf_conntrack
nf_defrag_ipv4 16384 1 nf_conntrack
nft_compat 20480 3
bridge 262144 0
stp 16384 1 bridge
llc 16384 2 bridge,stp
nf_tables 217088 59 nft_compat,nft_chain_nat
snd_seq_dummy 16384 0
snd_hrtimer 20480 2
snd_seq 81920 13 snd_seq_dummy
snd_seq_device 16384 1 snd_seq
bnep 28672 2
ledtrig_pattern 16384 0
sunrpc 458752 1
binfmt_misc 24576 1
axp20x_adc 20480 0
axp20x_battery 16384 0
axp20x_pek 16384 0
hci_uart 61440 0
st_magn_spi 16384 0
btrtl 24576 1 hci_uart
st_sensors_spi 16384 1 st_magn_spi
btbcm 20480 1 hci_uart
gpio_vibra 16384 0
snd_soc_simple_card 24576 8
regmap_spi 16384 1 st_sensors_spi
inv_mpu6050_i2c 16384 0
inv_mpu6050 36864 2 inv_mpu6050_i2c
snd_soc_simple_card_utils 24576 1 snd_soc_simple_card
af8133j 16384 0
bluetooth 712704 13 btrtl,hci_uart,btbcm,bnep
sun50i_codec_analog 32768 1
snd_soc_hdmi_codec 24576 0
8723cs 1433600 0
sun8i_adda_pr_regmap 16384 1 sun50i_codec_analog
st_magn_i2c 16384 0
st_magn 20480 2 st_magn_i2c,st_magn_spi
ecdh_generic 16384 1 bluetooth
st_sensors_i2c 16384 1 st_magn_i2c
ecc 32768 1 ecdh_generic
st_sensors 24576 3 st_magn_i2c,st_magn,st_magn_spi
stk3310 20480 0
industrialio_triggered_buffer 16384 3 inv_mpu6050,st_magn,af8133j
sun6i_csi 36864 0
sun8i_di 24576 0
kfifo_buf 16384 1 industrialio_triggered_buffer
sun8i_a33_mbus 20480 0
sun8i_rotate 24576 0
gc2145 32768 1
sunxi_cedrus 45056 0
sun8i_codec 57344 1
ecb 16384 0
ov5640 40960 1
v4l2_mem2mem 32768 3 sunxi_cedrus,sun8i_rotate,sun8i_di
leds_sgm3140 16384 0
v4l2_fwnode 24576 3 ov5640,gc2145,sun6i_csi
v4l2_flash_led_class 16384 1 leds_sgm3140
videobuf2_dma_contig 24576 4 sunxi_cedrus,sun8i_rotate,sun8i_di,sun6i_csi
videobuf2_memops 20480 1 videobuf2_dma_contig
sun4i_i2s 24576 2
des_generic 16384 0
videobuf2_v4l2 24576 5 sunxi_cedrus,sun8i_rotate,sun8i_di,sun6i_csi,v4l2_mem2mem
videobuf2_common 49152 8 sunxi_cedrus,sun8i_rotate,videobuf2_dma_contig,videobuf2_v4l2,sun8i_di,sun6i_csi,v4l2_mem2mem,videobuf2_memops
v4l2_async 24576 5 v4l2_fwnode,v4l2_flash_led_class,ov5640,gc2145,sun6i_csi
libdes 24576 1 des_generic
cbc 16384 0
sun8i_ce 49152 1
videodev 225280 11 sunxi_cedrus,v4l2_async,sun8i_rotate,v4l2_flash_led_class,ov5640,gc2145,videobuf2_v4l2,sun8i_di,sun6i_csi,videobuf2_common,v4l2_mem2mem
crypto_engine 20480 1 sun8i_ce
snd_soc_simple_amplifier 16384 1
snd_soc_ec25 16384 1
snd_soc_bt_sco 16384 1
rng_core 24576 1 sun8i_ce
mc 57344 10 sunxi_cedrus,v4l2_async,videodev,v4l2_flash_led_class,ov5640,gc2145,videobuf2_v4l2,sun6i_csi,videobuf2_common,v4l2_mem2mem
snd_soc_core 204800 9 sun4i_i2s,snd_soc_hdmi_codec,snd_soc_bt_sco,sun50i_codec_analog,sun8i_codec,snd_soc_simple_amplifier,snd_soc_simple_card_utils,snd_soc_ec25,snd_soc_simple_card
leds_gpio 16384 0
snd_pcm_dmaengine 16384 1 snd_soc_core
joydev 32768 0
snd_pcm 114688 6 sun4i_i2s,snd_soc_hdmi_codec,sun8i_codec,snd_soc_simple_card_utils,snd_soc_core,snd_pcm_dmaengine
snd_timer 40960 3 snd_seq,snd_hrtimer,snd_pcm
snd 94208 27 snd_seq,snd_seq_device,snd_soc_hdmi_codec,snd_timer,sun8i_codec,snd_soc_core,snd_pcm
soundcore 16384 1 snd
cfg80211 770048 1 8723cs
rfkill 28672 8 bluetooth,cfg80211
sch_fq_codel 24576 5
zram 32768 0
zsmalloc 24576 1 zram
fuse 122880 7
configfs 45056 1
nfnetlink 20480 3 nft_compat,nf_tables
ip_tables 32768 0
x_tables 40960 5 nft_compat,xt_tcpudp,xt_CHECKSUM,ip_tables,xt_MASQUERADE
autofs4 45056 2
ext4 745472 3
crc16 16384 2 bluetooth,ext4
mbcache 16384 1 ext4
jbd2 126976 1 ext4
btrfs 1392640 0
xor 16384 1 btrfs
xor_neon 20480 1 xor
raid6_pq 102400 1 btrfs
zstd_compress 249856 1 btrfs
libcrc32c 16384 4 nf_conntrack,nf_nat,btrfs,nf_tables
crc32c_generic 16384 7
dm_crypt 49152 1
dm_mod 135168 3 dm_crypt
dw_hdmi_cec 16384 0
dw_hdmi_i2s_audio 16384 0
aes_ce_blk 32768 1
ghash_ce 20480 0
gf128mul 16384 1 ghash_ce
sha2_ce 16384 0
axp20x_usb_power 20480 0
sunxi 24576 0
industrialio 77824 12 stk3310,axp20x_battery,industrialio_triggered_buffer,st_sensors,inv_mpu6050,kfifo_buf,st_magn_i2c,st_magn,axp20x_usb_power,af8133j,axp20x_adc,st_magn_spi
sha1_ce 16384 0
pinephone_keyboard 16384 0
phy_generic 20480 2 sunxi
goodix_ts 32768 0
musb_hdrc 114688 1 sunxi
crc8 16384 1 pinephone_keyboard
matrix_keymap 16384 1 pinephone_keyboard
udc_core 53248 1 musb_hdrc
sun4i_lradc_keys 16384 0
evdev 28672 7
arm_scpi 24576 0

-- /etc/initramfs-tools/modules

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=auto
KEYMAP=n
COMPRESS=zstd
DEVICE=
NFSROOT=auto
RUNSIZE=10%
FSTYPE=auto

-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no

-- /etc/crypttab
# <target name> <source device> <key file> <options>
calamares_crypt UUID=55f06702-4d1a-42ab-adfb-2aa3fc7527f1 none luks,keyscript=/usr/share/initramfs-tools/scripts/osk-sdl-keyscript

-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:

/usr/share/initramfs-tools/hooks:
btrfs
cryptgnupg
cryptgnupg-sc
cryptkeyctl
cryptopensc
cryptpassdev
cryptroot
cryptroot-unlock
dmsetup
fsck
fuse
growroot
keymap
klibc-utils
kmod
osk-sdl
plymouth
resume
thermal
udev
zz-busybox


-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: arm64 (aarch64)

Kernel: Linux 6.1-sunxi64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_CRAP, TAINT_UNSIGNED_MODULE
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages initramfs-tools depends on:
ii initramfs-tools-core 0.145
ii linux-base 4.10.1

initramfs-tools recommends no packages.

Versions of packages initramfs-tools suggests:
ii bash-completion 1:2.14.0-2

-- no debconf information
Ben Hutchings
2025-03-02 15:50:01 UTC
Reply
Permalink
Control: reassign -1 osk-sdl 0.67-1.3
Control: close -1 osk-sdl 0.67-1.4
Post by Enrique Garcia
Package: initramfs-tools
Version: 0.145
Severity: normal
Dear Maintainer,
I have upgraded my pinephone which uses Debian testing and the last
apt upgrade failed while triggering the initramfs-tools with the
Processing triggers for initramfs-tools (0.145) ...
update-initramfs: Generating /boot/initrd.img-6.1-sunxi64
ln: failed to create symbolic link
'/var/tmp/mkinitramfs_Ijij5N//usr/lib/aarch64-linux-
gnu/dri/libdril_dri.so': File exists
[...]

This was a bug in the osk-sdl package, not initramfs-tools itself. It
appears to have been fixed now.

Ben.
--
Ben Hutchings
Any smoothly functioning technology is indistinguishable
from a rigged demo.
Loading...