RPi-B shutting down during boot

I have a Raspberry Pi (1) model B,

Installed latest DietPi ( updated 15.12.2025 ) on a 1 GB SD card. I watched the boot sequence via HDMI output. Just before the login prompt it says systemd power-off and then shut downs.

Though, the real problem is I believe, it says FAILED for kernel.command-line service. That’s where it goes downhill from there.

What may be the reason for this?

1 Like

There is no kernel command-line service. The kernel command-line arguments from /boot/firmware/cmdline.txt are applied to the kernel by the bootloader, and passed through to the init system (systemd) from there. If it was just before the login prompt, then this is log after the kernel and init system have been loaded.

Maybe you can catch a screenshot, or have a UART adapter to copy&paste the output from the serial console?

Automatic reboot can generally happen in case of insufficient PSU. It has 1.2A or more? Also a low quality cable can lead to significant voltage drop. But if the poweroff.target is invoked, it seems sort of a regular shutdown :thinking:.

Ok, i have to agree with Plato on this - i’m having exactly the same behaviour.

my config:

  • Hardware: Rasperry Pi Zero (original, no wifi)
  • Raspberry Pi imager v2.0.2
  • DietPi OS 32-bit released 2025-12-15 (selected from “other general purpose” in imager)
  • 2GB Micro SD Card

my cmdline.txt, which was auto-populated by the imager customisations is this:

  • root=PARTUUID=523a88c4-02 rootfstype=ext4 rootwait fsck.repair=yes net.ifnames=0 logo.nologo console=serial0,115200 console=tty1 cfg80211.ieee80211_regdom=GB systemd.run=/boot/firstrun.sh systemd.run_success_action=reboot systemd.unit=kernel-command-line.target

unfortunately, as the pi shuts down straight away, i cant get to the service status to understand more about the failure. If there is any way to prevent the shutdown, or enable extra logging to get more info, i’d be happy to try it.

You cannot use the customization of the RPi imager with anything else but RPi OS. The scripts it tries to load do not exist on DietPi.

EDIT: Okay @ktremain there I see that service I was wondering about, so you used the RPi Imager + customization as well?

Is DietPi already selectable in the RPi Imager (request was done) or did you flash the manually downloaded image? I wished there was some clear warning about its customization options. It is closely tied to RPi OS setup and packages. cloud-init was or maybe is sort of supported as a standard as well, but that certainly does not include all customization options and is not available on DietPi either (while we could think about integrating it on RPi images if this enhances RPi Imager support greatly).

1 Like

Pressing the skip customization seems to fix it.

I have a Pi 3B and it would not run with DietPI when I would use the RPI Imager.

I found this post and tried what @MichaIng said (skip customization) and it booted.

Before I was doing the customization not knowing its only for RPI OS.

Thanks!

Okay great, DietPi is indeed available directly in the Raspberry Pi Imager now :partying_face:. I also think I found a way to hide the customization options for our images, but am checking back with Tom (responsible for 3rd party OS integration) to be sure.

1 Like

Found a way to hide/grey out the customization in the RPi imager for DietPi images. It just needed a small adjustment in our JSON file that is pulled by the imager. But they either have a cache or it is pulled on RPi imager update, at least right now for me customization is still offered.

can confirm that my RPi imager no longer offers customisation options with the DietPi image, and everything is working fine again.

I would put my vote on getting DietPi to support the customisations if possible, as it makes it a little easier with initial setup.

Thanks for the help! :slight_smile:

Jep, took an hour or some, I guess the info is cached somewhere for a short while, but also here the customization is skipped now :+1:.