Cannot boot with systemd : Must be superuser to use mount
Hello all -
I'm a beginner Ycoto user and I'm trying to build raspberrypi4-64 image for my project. I've been able to build an image and boot it successfully initially, but when I switched from sysvinit to systemd, and enable U-Boot, I'm not longer able to boot.
During boot process, I noticed all systemd services that try to mount partitions are failing, including the following:
Copy
[ FAILED ] Failed to mount / var / volatile.
[ FAILED ] Failed to mount Temporary Directory ( /tmp )
When I use the emergency shell to check the logs of those systemd services, I am seeing this error:
"must be superuser to use mount."
I even tried to manually mount partitions in the emergency shell using the mount command, and I got the same error, when I run whoami , I see that I am root user.
Furthermore, when I list the files in the rootfs, everything is owned by uid 1000, including /sbin/init , /bin/mount , /lib/systemd/sytemd … I was under the impression those should be owned by root user.
I would really appreciate any help, I cannot find anything online regarding this issue.
Please see below my conf/local.conf:
DISTRO_FEATURES += " ${DISTRO_FEATURES_LIBC} wifi ipv4 virtualization systemd" DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
VIRTUAL - RUNTIME_init_manager = "systemd"
VIRTUAL - RUNTIME_initscripts = ""MACHINE_FEATURES_remove = "apm"IMAGE_FSTYPES = "rpi-sdimg"
MACHINE = "raspberrypi4-64"DISABLE_SPLASH = "1"ENABLE_UART = "1"RPI_USE_U_BOOT = "1"PREFERRED_VERSION_linux - raspberrypi = "5.4.%"
DISTRO = "poky"PACKAGE_CLASSES = "package_ipk"EXTRA_IMAGE_FEATURES = "debug-tweaks"IMAGE_INSTALL_append = " wpa-supplicant docker-ce python3-docker-compose openssh avahi-daemon kernel-image kernel-devicetree"