Pi CM4 wont boot after Transfer RootFS

Creating a bug report/issue

[Y] I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version

G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=25
G_DIETPI_VERSION_RC=1
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’

  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN

bookworm 0

  • Kernel version | uname -a

Linux iot-turing-node-1 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

  • Architecture | dpkg --print-architecture

arm64

  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)

RPi CM 4 (aarch64)

  • Power supply used | (EG: 5V 1A RAVpower)

Pi CM4 is mounted on a Turing Pi 2 board mounted in a Mini-ITX case with a 180w PSU

  • SD card used | (EG: SanDisk ultra)

None - Install is to emmc

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)

dietpi-drive_manager

  • Was the software title installed freshly or updated/migrated?

fresh install

  • Can this issue be replicated on a fresh installation of DietPi?

Yes - multiple times on two different CM4s/SATA disks/board slots

← If you sent a “dietpi-bugreport”, please paste the ID here →

  • Bug report ID | echo $G_HW_UUID

Steps to reproduce

  1. Pi CM4 is installed on a Turing Pi 2 board in node slot 1 or 2. These slots have a MPCIE adapter installed with a 500GB SATA disk attached.
  2. Install Dietpi, either from BMC - Flash Node or via USB cable from a laptop
  3. Either during the installation process, or after installation is complete, use dietpi-drive_manager to transfer RootFS to the SATA disk.
  4. Select the SATA disk (/dev/sda)
  5. Select Transfer RootFS to the SATA disk.
  6. Format the disk as ext4
  7. After formatting, screen shows rsync being installed and a copy of the rootfs being copied to the SATA disk
  8. After copying there’s a mandatory reboot. On rebooting the system doesn’t come back online.

Expected behaviour

After the reboot the system should come back online with /boot on the emmc and / on the SATA disk (/dev/sda)

Actual behaviour

During the boot sequence the system gets to the point where it has to mount / to proceed further but it just waits forever.

Extra details

I’ve tried formatting as whole disk or partition - no difference.
I’ve tried a second Pi CM4 and SATA disk in the second Turing Pi Node slot - no difference
I’ve re-loaded Dietpi without doing Transfer RootFS. I can successfully mount /dev/sda and I can see the copy of the root FS on the disk so it appears that the copy succeeded and that the SATA disk isn’t corrupt. This also confirms that any necessary software/drivers to support the MPCIE connected SATA disk are also in place.
I’ve tried both Bookworm and Bullseye installs to check it’s not a recent Bookwork issue, but both behave the same way.
Using the Turing Pi BMC I can mount the Pi EMMC as a MSD. The OS appears to be intact. I’m not 100% sure about this but the content of /boot/cmdline.txt and /etc/fstab don’t look correct…

# cat cmdline.txt
root=PARTUUID=607b14ce-b9da-4df7-af49-09c255e9fa36 rootfstype=ext4 rootwait net.ifnames=0 logo.nologo console=tty1
# cat /mnt/node2/etc/fstab
# You can use "dietpi-drive_manager" to setup mounts.
# NB: It overwrites and re-creates physical drive mount entries on use.
#----------------------------------------------------------------
# NETWORK
#----------------------------------------------------------------


#----------------------------------------------------------------
# TMPFS
#----------------------------------------------------------------
tmpfs /tmp tmpfs size=1922M,noatime,lazytime,nodev,nosuid,mode=1777
tmpfs /var/log tmpfs size=50M,noatime,lazytime,nodev,nosuid

#----------------------------------------------------------------
# MISC: ecryptfs, vboxsf, glusterfs, mergerfs, bind, Btrfs subvolume
#----------------------------------------------------------------


#----------------------------------------------------------------
# SWAP SPACE
#----------------------------------------------------------------


#----------------------------------------------------------------
# PHYSICAL DRIVES
#----------------------------------------------------------------
PARTUUID=28a6ec92-02 / ext4 noatime,lazytime,rw 0 1
PARTUUID=28a6ec92-01 /boot vfat noatime,lazytime,rw 0 2
UUID=38311a99-3575-4626-b4f0-fefd857e4313 /mnt/38311a99-3575-4626-b4f0-fefd857e4313 ext4 noatime,lazytime,rw,nofail,noauto,x-systemd.automount

If I’m reading that correctly, cmdline.txt thinks rootfs is on UUID=607b14ce-b9da-4df7-af49-09c255e9fa36 (SATA disk) but fstab thinks it’s on PARTUUID=28a6ec92-02 which is the second partition in emmc (boot is PARTUUID=28a6ec92-01). The UUID is definitely not the emmc, but I forgot to capture the PARTUUID for the SATA disk when repeating this to document here.

If I change the PARTUUID in cmdline.txt to 28a6ec92-02 to match fstab the system boots (it’s pingable) but I can’t connect by SSH (connection refused).

I’ve tried changing the fstab so that it matches the rootfs PARTUUID in cmdline.txt and then rebooting the CM4 but it still hangs on startup.

I’m out of ideas of what to try next. Suggestions are welcome!

the UUID should be the partition not PARTUUID in /etc/fstab

 / _ \|  _ \_ _| |__  /___ _ __ ___|___ \ \      / /
| | | | |_) | |    / // _ \ '__/ _ \ __) \ \ /\ / /
| |_| |  __/| |   / /|  __/ | | (_) / __/ \ V  V /
 \___/|_|  |___| /____\___|_|  \___/_____| \_/\_/

Welcome to Orange Pi 1.0.0 Bullseye with Linux 5.4.125

System load:   25%              Up time:       2 days 22:09     Local users:   2                                                                                                                                                             
Memory usage:  5% of 3.81G      IP:            192.168.0.248
CPU temp:      63°C             Usage of /:    4% of 58G

cat /etc/fstab
# <file system>                                 <mount point>   <type>  <options>                                                       <dump>  <pass>
tmpfs                                           /tmp            tmpfs   defaults,nosuid                                                 0       0
UUID=3b77ceec-b965-4dd6-8ced-0045f4a18811       /media/mmcboot  ext4    defaults,noatime,commit=600,errors=remount-ro,x-gvfs-hide       0       1
/media/mmcboot/boot                             /boot           none    bind   0       0
UUID=5956f31f-688c-4b59-85db-b3a725f6a5cf       /               btrfs   defaults,noatime,commit=600,compress=lzo,x-gvfs-hide

This is on my OPI02W running orangepi os…but it’s the same type of mounting deal…you can’t use PARTUUID in /etc/fstab…

List the UUID with several methods

sudo ls -lha /dev/disk/by-uuid
or
sudo df --output=source MYFILE | tail -n1 | xargs lsblk -o uuid
or
sudo lsblk -o +uuid,name (which shows mount point)
or
sudo lsblk --output NAME,FSTYPE,LABEL,UUID,MODE

https://www.simplified.guide/linux/disk-uuid-get

2 Likes

Thanks for the suggestion. I’ve tried UUID but that doesn’t work either. I’ve checked that the correct UUID for the partition on the SSD is in both cmdline.txt and fstab (original and transferred copy) immediately before the reboot in the Transfer RootFS process but it still hangs on boot.

I’ve been doing some more research since I first posted. My knowledge of the Linux boot process is limited so apologies if I get the terminology wrong! I think the problem might be that the Pi images don’t have an overlay (?) that allows the bootloader to access the SATA disk. I believe the Orange Pi image has this which is why it works for you. I assume that once booted something else in the OS allows me to access the SSD, i.e. it’s no longer using the bootloader with the non-existent overlay?

If that’s correct then I’m not sure how this can be fixed if the software doesn’t exist.

Coming back to this again…

After some discussion about this in the Turing Pi community I continued testing because a number of people said that they have successfuly moved the rootFS across to a SATA disk. It was suggested that I try it again with Raspberry Pi OS. I used the latest RPiOS Bookworm image and successfully booted the CM4 with root FS running on a SATA SSD (connected by a Mini PCIE adapter). This wasn’t a one-off. I documented the process and have repeated it 3 or 4 times since with the same outcome.

So, I thought I’d go back to trying DietPi. The process is basically what the ‘Move rootFS’ function in the DietPi config does, but done manually, i.e. mount the SSD partition and a copy of current root. rsync the mounted copy of root to the SSD, change /etc/fstab to use the SSD instead of the EMMC partition for root, change cmdline.txt to point root at the SSD and then reboot. With RPi OS when the OS comes back up root is running from the OS. With DietPi the system doesn’t come back up after the reboot.

Seeing what’s happening is difficult because without swapping modules and SSDs around the slot I’m using for testing has no HDMI output and the serial console doesn’t seem to work either. Also DietPi only has logs in RAM so whatever was there would be wiped by a subsequent reboot. Having said that, any logs would attempted to be written to the SSD disk which can’t be mounted so I doubt that I’d see anything!

So all I know is that it doesn’t boot. At one point working on the CM4 in the slot that has HDMI output I saw that when the OS tried to mount the root partition on SSD it just sat waiting - seemingly forever. This suggested that at that stage of the boot process the OS isn’t able to access SATA disks connected by mPCIE.

I thought the DietPi boot process was very similar to RPi OS, but it doesn’t seem to identical. Maybe something has been removed to reduce the size or speed up booting?

Can anyone suggest a way that I can make any more progress in debugging this?

did you already tried to run our installer on a booted RPI OS? Supported hardware - DietPi.com Docs

1 Like

No, I haven’t tried that, but I will do. Do I just need one file, i.e. the dietpi-installer file?

Edit: Sorry, I should have read that page in more detail. It fully explains the process.

1 Like

I’ve run dietpi-installer on a RPi OS Lite installation. The good news is that after doing that I’ve successfully moved rootFS across to the SATA SSD :smiley:

There’s another problem though…when I log in after each reboot I get a warning…

reboot : A reboot is required to finalise a recent kernel upgrade

I’m still getting this after 4 reboots so I don’t think it’s going away.

hmm usually this happen if the mounted kernel partition is not the one used to boot the system from. :thinking: A typical symptom for a system running Berryboot.

can you check how our file system looks like

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid

This is how it looks…

NAME         FSTYPE LABEL    SIZE RO TYPE MOUNTPOINT     PARTUUID                             UUID
sda                        476.9G  0 disk
└─sda1       ext4          476.9G  0 part /              7290330c-01                          64d804e5-b262-49ee-a7f0-4dc2ec283c4e
mmcblk0                     14.6G  0 disk
├─mmcblk0p1  vfat   bootfs   512M  0 part /boot/firmware e9310e54-01                          5DF9-E225
└─mmcblk0p2  ext4   rootfs  14.1G  0 part                e9310e54-02                          3b614a3f-4a65-4480-876a-8a998e01ac9b
mmcblk0boot0                   4M  1 disk
mmcblk0boot1                   4M  1 disk

However, this is after I appear to have fixed it so it might have been different when the reboot warning was appearing.

In dietpi-config | Advanced Options there’s a ‘Rpi kernel choice’ which I’d not seen before. Maybe it wasn’t there on previous installs? Anyway, when I looked in there it said :

Based on your currently used kernel variant, the following package will be kept/installed:

  • linux-image-rpi-v8 for Raspberry Pi 2-5

Do you want to keep/install the following additional kernel package, to boot this image from other Raspberry Pi models?

  • linux-image-rpi-2712 for Raspberry Pi 5 only

                            <Yes>                                      <No>
    

As this is running on a CM4 with no intention to ever install on an RPi5 I selected NO. When the bunch of uninstalls and other stuff being done had finished I rebooted and the reboot warning was no longer there when I logged in. I’m assuming that removing the Pi5 kernel package fixed it? Does that sound sensible?

This is a new feature in DietPi v9

As you started on RPi OS, it might had kernel for all RPI version pre-installed. This has been removed now. Would be good to know what has been removed :smiley:

1 Like

If there’s a way to find what was removed I’m happy to run through the OS installation/dietpi-installer process again to try to get the info. Not tonight though. My bed is calling me :zzz:

just out of curiosity, why not trying to flash the whole image to SSD and forget about using SD card :smiley:

A few reasons, but the main one is that the RPi bootloader doesn’t have the ability to boot from SATA. So I have to have a hybrid install where the boot partition is on EMMC. The bootloader can read that and once the kernel is loaded it’s then able to mount root on SATA.

This is an issue on the RPi GitHub with a comment that SATA boot support probably isn’t going to happen until a bigger EEPROM is built into the Pi hardware. So maybe in the Pi6?

Ideally I wanted to boot from NVME but I can’t get the CM4 to recognise an NVME SSD via the mPCIE adapter I’m using on the Turing Pi 2.

I’ve also found that when doing a shutdown I get “Failed to connect to bus: No such file or directory”. The system does shut down though so it’s not a fatal error.

I’ve turned full logging on to try to catch the error but I can’t see any obvious error being logged during the shutdown. I’ll try again later this morning to see if I can see anything I missed first time through.

A little bit expected as we don’t install dbus on a default installation. We tried to create some tweaks to hide the message if dbus is not present. However on some rar cases this tweak is not working.

1 Like

Don’t know if this helps, but I re-installed and went through the dietpi-installer process again. The kernel reboot warning came back. The RPi Kernel Choice option asked if I wanted to keep/install “linux-image-rpi-2712 for Raspberry Pi 5 only”. I answered NO and got this output…

[ INFO ] DietPi-Set_software | APT install linux-image-rpi-v8 raspi-firmware raspi-utils, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
raspi-firmware is already the newest version (1:1.20231024+ds-1+rpt2).
raspi-firmware set to manually installed.
The following additional packages will be installed:
  cpio initramfs-tools initramfs-tools-core klibc-utils kms++-utils
  libdrm-common libdrm2 libfmt9 libgdbm-compat4 libgdbm6 libklibc libkms++0
  libperl5.36 linux-base linux-image-6.1.0-rpi7-rpi-v8 net-tools perl
  perl-modules-5.36 raspi-gpio
Suggested packages:
  libarchive-dev gdbm-l10n linux-doc-6.1 debian-kernel-handbook perl-doc
  libterm-readline-gnu-perl | libterm-readline-perl-perl make
  libtap-harness-archive-perl
Recommended packages:
  busybox | busybox-static zstd apparmor netbase
The following packages will be REMOVED:
  libraspberrypi-bin
The following NEW packages will be installed:
  cpio initramfs-tools initramfs-tools-core klibc-utils kms++-utils
  libdrm-common libdrm2 libfmt9 libgdbm-compat4 libgdbm6 libklibc libkms++0
  libperl5.36 linux-base linux-image-6.1.0-rpi7-rpi-v8 linux-image-rpi-v8
  net-tools perl perl-modules-5.36 raspi-gpio raspi-utils
0 upgraded, 21 newly installed, 1 to remove and 0 not upgraded.
Need to get 36.5 MB of archives.
After this operation, 89.3 MB of additional disk space will be used.
Get:1 https://deb.debian.org/debian bookworm/main arm64 perl-modules-5.36 all 5.36.0-7+deb12u1 [2815 kB]
Get:2 https://archive.raspberrypi.com/debian bookworm/main arm64 raspi-gpio arm64 0.20231127 [11.9 kB]
Get:3 https://archive.raspberrypi.com/debian bookworm/main arm64 libkms++0 arm64 0~git20231115~065257+9ae90ce-1 [75.2 kB]
Get:4 https://deb.debian.org/debian bookworm/main arm64 libgdbm6 arm64 1.23-3 [70.9 kB]
Get:5 https://deb.debian.org/debian bookworm/main arm64 libgdbm-compat4 arm64 1.23-3 [48.0 kB]
Get:6 https://deb.debian.org/debian bookworm/main arm64 libperl5.36 arm64 5.36.0-7+deb12u1 [4014 kB]
Get:7 https://archive.raspberrypi.com/debian bookworm/main arm64 kms++-utils arm64 0~git20231115~065257+9ae90ce-1 [81.9 kB]
Get:8 https://archive.raspberrypi.com/debian bookworm/main arm64 raspi-utils arm64 20231105-1 [97.4 kB]
Get:9 https://deb.debian.org/debian bookworm/main arm64 perl arm64 5.36.0-7+deb12u1 [239 kB]
Get:10 https://deb.debian.org/debian bookworm/main arm64 net-tools arm64 2.10-0.1 [241 kB]
Get:11 https://deb.debian.org/debian bookworm/main arm64 libfmt9 arm64 9.1.0+ds1-2 [107 kB]
Get:12 https://deb.debian.org/debian bookworm/main arm64 libdrm-common all 2.4.114-1 [7112 B]
Get:13 https://archive.raspberrypi.com/debian bookworm/main arm64 linux-image-6.1.0-rpi7-rpi-v8 arm64 1:6.1.63-1+rpt1 [28.1 MB]
Get:14 https://deb.debian.org/debian bookworm/main arm64 libdrm2 arm64 2.4.114-1+b1 [36.7 kB]
Get:15 https://deb.debian.org/debian bookworm/main arm64 cpio arm64 2.13+dfsg-7.1 [240 kB]
Get:16 https://deb.debian.org/debian bookworm/main arm64 libklibc arm64 2.0.12-1 [46.0 kB]
Get:17 https://deb.debian.org/debian bookworm/main arm64 klibc-utils arm64 2.0.12-1 [101 kB]
Get:18 https://deb.debian.org/debian bookworm/main arm64 initramfs-tools-core all 0.142 [105 kB]
Get:19 https://deb.debian.org/debian bookworm/main arm64 linux-base all 4.9 [31.8 kB]
Get:20 https://deb.debian.org/debian bookworm/main arm64 initramfs-tools all 0.142 [72.9 kB]
Get:21 https://archive.raspberrypi.com/debian bookworm/main arm64 linux-image-rpi-v8 arm64 1:6.1.63-1+rpt1 [1424 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 36.5 MB in 2s (15.7 MB/s)
                                 Selecting previously unselected package perl-modules-5.36.
(Reading database ... 17103 files and directories currently installed.)
Preparing to unpack .../00-perl-modules-5.36_5.36.0-7+deb12u1_all.deb ...
Unpacking perl-modules-5.36 (5.36.0-7+deb12u1) ...
Selecting previously unselected package libgdbm6:arm64.
Preparing to unpack .../01-libgdbm6_1.23-3_arm64.deb ...
Unpacking libgdbm6:arm64 (1.23-3) ...
Selecting previously unselected package libgdbm-compat4:arm64.
Preparing to unpack .../02-libgdbm-compat4_1.23-3_arm64.deb ...
Unpacking libgdbm-compat4:arm64 (1.23-3) ...
Selecting previously unselected package libperl5.36:arm64.
Preparing to unpack .../03-libperl5.36_5.36.0-7+deb12u1_arm64.deb ...
Unpacking libperl5.36:arm64 (5.36.0-7+deb12u1) ...
Selecting previously unselected package perl.
Preparing to unpack .../04-perl_5.36.0-7+deb12u1_arm64.deb ...
Unpacking perl (5.36.0-7+deb12u1) ...
Selecting previously unselected package net-tools.
Preparing to unpack .../05-net-tools_2.10-0.1_arm64.deb ...
Unpacking net-tools (2.10-0.1) ...
Selecting previously unselected package raspi-gpio.
Preparing to unpack .../06-raspi-gpio_0.20231127_arm64.deb ...
Unpacking raspi-gpio (0.20231127) ...
Selecting previously unselected package libfmt9:arm64.
Preparing to unpack .../07-libfmt9_9.1.0+ds1-2_arm64.deb ...
Unpacking libfmt9:arm64 (9.1.0+ds1-2) ...
Selecting previously unselected package libdrm-common.
Preparing to unpack .../08-libdrm-common_2.4.114-1_all.deb ...
Unpacking libdrm-common (2.4.114-1) ...
Selecting previously unselected package libdrm2:arm64.
Preparing to unpack .../09-libdrm2_2.4.114-1+b1_arm64.deb ...
Unpacking libdrm2:arm64 (2.4.114-1+b1) ...
Selecting previously unselected package libkms++0:arm64.
Preparing to unpack .../10-libkms++0_0~git20231115~065257+9ae90ce-1_arm64.deb ...
Unpacking libkms++0:arm64 (0~git20231115~065257+9ae90ce-1) ...
Selecting previously unselected package kms++-utils.
Preparing to unpack .../11-kms++-utils_0~git20231115~065257+9ae90ce-1_arm64.deb ...
Unpacking kms++-utils (0~git20231115~065257+9ae90ce-1) ...
dpkg: libraspberrypi-bin: dependency problems, but removing anyway as you requested:
 rpi-eeprom depends on raspi-utils | libraspberrypi-bin; however:
  Package raspi-utils is not installed.
  Package libraspberrypi-bin is to be removed.

(Reading database ... 19207 files and directories currently installed.)
Removing libraspberrypi-bin (1:2+git20231018~131943+3c97f76-1) ...
Selecting previously unselected package raspi-utils.
(Reading database ... 19189 files and directories currently installed.)
Preparing to unpack .../0-raspi-utils_20231105-1_arm64.deb ...
Unpacking raspi-utils (20231105-1) ...
Selecting previously unselected package cpio.
Preparing to unpack .../1-cpio_2.13+dfsg-7.1_arm64.deb ...
Unpacking cpio (2.13+dfsg-7.1) ...
Selecting previously unselected package libklibc:arm64.
Preparing to unpack .../2-libklibc_2.0.12-1_arm64.deb ...
Unpacking libklibc:arm64 (2.0.12-1) ...
Selecting previously unselected package klibc-utils.
Preparing to unpack .../3-klibc-utils_2.0.12-1_arm64.deb ...
Unpacking klibc-utils (2.0.12-1) ...
Selecting previously unselected package initramfs-tools-core.
Preparing to unpack .../4-initramfs-tools-core_0.142_all.deb ...
Unpacking initramfs-tools-core (0.142) ...
Selecting previously unselected package linux-base.
Preparing to unpack .../5-linux-base_4.9_all.deb ...
Unpacking linux-base (4.9) ...
Selecting previously unselected package initramfs-tools.
Preparing to unpack .../6-initramfs-tools_0.142_all.deb ...
Unpacking initramfs-tools (0.142) ...
Selecting previously unselected package linux-image-6.1.0-rpi7-rpi-v8.
Preparing to unpack .../7-linux-image-6.1.0-rpi7-rpi-v8_1%3a6.1.63-1+rpt1_arm64.deb ...
Unpacking linux-image-6.1.0-rpi7-rpi-v8 (1:6.1.63-1+rpt1) ...
Selecting previously unselected package linux-image-rpi-v8.
Preparing to unpack .../8-linux-image-rpi-v8_1%3a6.1.63-1+rpt1_arm64.deb ...
Unpacking linux-image-rpi-v8 (1:6.1.63-1+rpt1) ...
Setting up cpio (2.13+dfsg-7.1) ...
update-alternatives: using /bin/mt-gnu to provide /bin/mt (mt) in auto mode
Setting up net-tools (2.10-0.1) ...
Setting up linux-base (4.9) ...
Setting up raspi-gpio (0.20231127) ...
Setting up libklibc:arm64 (2.0.12-1) ...
Setting up perl-modules-5.36 (5.36.0-7+deb12u1) ...
Setting up libfmt9:arm64 (9.1.0+ds1-2) ...
Setting up klibc-utils (2.0.12-1) ...
No diversion 'diversion of /usr/share/initramfs-tools/hooks/klibc to /usr/share/initramfs-tools/hooks/klibc^i-t by klibc-utils', none removed.
Setting up libdrm-common (2.4.114-1) ...
Setting up libgdbm6:arm64 (1.23-3) ...
Setting up libgdbm-compat4:arm64 (1.23-3) ...
Setting up libdrm2:arm64 (2.4.114-1+b1) ...
Setting up initramfs-tools-core (0.142) ...
Setting up libperl5.36:arm64 (5.36.0-7+deb12u1) ...
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-6.1.0-rpi7-rpi-v8 (1:6.1.63-1+rpt1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-6.1.0-rpi7-rpi-v8
I: /initrd.img.old is now a symlink to boot/initrd.img-6.1.0-rpi7-rpi-v8
I: /vmlinuz is now a symlink to boot/vmlinuz-6.1.0-rpi7-rpi-v8
I: /initrd.img is now a symlink to boot/initrd.img-6.1.0-rpi7-rpi-v8
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.1.0-rpi7-rpi-v8
W: No zstd in /usr/bin:/sbin:/bin, using gzip
Setting up perl (5.36.0-7+deb12u1) ...
Setting up libkms++0:arm64 (0~git20231115~065257+9ae90ce-1) ...
Setting up linux-image-rpi-v8 (1:6.1.63-1+rpt1) ...
Setting up kms++-utils (0~git20231115~065257+9ae90ce-1) ...
Setting up raspi-utils (20231105-1) ...
Processing triggers for libc-bin (2.36-9+rpt2+deb12u3) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-rpi7-rpi-v8
W: No zstd in /usr/bin:/sbin:/bin, using gzip
[  OK  ] DietPi-Set_software | APT install linux-image-rpi-v8 raspi-firmware raspi-utils
[ INFO ] DietPi-Set_software | APT purge linux-image-rpi-2712 raspberrypi-kernel raspberrypi-headers-kernel raspberrypi-bootloader libraspberrypi-bin libraspberrypi0, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
  libraspberrypi0* raspberrypi-bootloader* raspberrypi-kernel*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
                                                              After this operation, 54.8 MB disk space will be freed.
(Reading database ... 21916 files and directories currently installed.)
Removing libraspberrypi0:arm64 (1:2+git20231018~131943+3c97f76-1) ...
Removing raspberrypi-bootloader (1:1.20230405-1) ...
Removing raspberrypi-kernel (1:1.20230405-1) ...
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 6.1.21+ /boot/kernel.img
run-parts: executing /etc/kernel/postrm.d/z50-raspi-firmware 6.1.21+ /boot/kernel.img
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 6.1.21-v7+ /boot/kernel7.img
run-parts: executing /etc/kernel/postrm.d/z50-raspi-firmware 6.1.21-v7+ /boot/kernel7.img
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 6.1.21-v7l+ /boot/kernel7l.img
run-parts: executing /etc/kernel/postrm.d/z50-raspi-firmware 6.1.21-v7l+ /boot/kernel7l.img
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 6.1.21-v8+ /boot/kernel8.img
run-parts: executing /etc/kernel/postrm.d/z50-raspi-firmware 6.1.21-v8+ /boot/kernel8.img
Processing triggers for libc-bin (2.36-9+rpt2+deb12u3) ...
(Reading database ... 19443 files and directories currently installed.)
Purging configuration files for raspberrypi-kernel (1:1.20230405-1) ...
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 6.1.21+ /boot/kernel.img
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.1.21+
run-parts: executing /etc/kernel/postrm.d/z50-raspi-firmware 6.1.21+ /boot/kernel.img
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 6.1.21-v7+ /boot/kernel7.img
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.1.21-v7+
run-parts: executing /etc/kernel/postrm.d/z50-raspi-firmware 6.1.21-v7+ /boot/kernel7.img
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 6.1.21-v7l+ /boot/kernel7l.img
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.1.21-v7l+
run-parts: executing /etc/kernel/postrm.d/z50-raspi-firmware 6.1.21-v7l+ /boot/kernel7l.img
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 6.1.21-v8+ /boot/kernel8.img
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.1.21-v8+
run-parts: executing /etc/kernel/postrm.d/z50-raspi-firmware 6.1.21-v8+ /boot/kernel8.img
[  OK  ] DietPi-Set_software | APT purge linux-image-rpi-2712 raspberrypi-kernel raspberrypi-headers-kernel raspberrypi-bootloader libraspberrypi-bin libraspberrypi0
[  OK  ] rpi_kernel_choice  | Completed

After the next reboot the kernel reboot warning had gone away as it had previously done.

It does seem to be related to dbus. I tried installing it to see if anything changed. On shutdown I then got…

Failed to set wall message, ignoring: Unit dbus-org.freedesktop.login1.service failed to load properly, please adjust/correct and reload service manager: File exists
Call to PowerOff failed: Unit dbus-org.freedesktop.login1.service failed to load properly, please adjust/correct and reload service manager: File exists

Oddly, despite saying the call to PowerOff had failed the system did shutdown and had to be power cycled to restart it.

Looks like you are using a RPI OS image with the new kernel/firmware structure. Something our installer not yet supporting fully. This might explain the mismatch a bit.

Better to use poweroff. This should avoid your message. Maybe you like to have a look /sbin/shutdown: Failed to connect to bus: No such file or directory · Issue #5912 · MichaIng/DietPi · GitHub

I don’t remember being told about poweroff when I did my Unix training back in the late 1980’s LOL

Now I know the error is innocuous I can ignore it. Hopefully it will disappear after a future update.

This topic was automatically closed 178 days after the last reply. New replies are no longer allowed.