Subject: Cannot boot with systemd : Must be superuser to use mount To: yocto@lists.yoctoproject.org From: aiman.najjar@hurranet.com X-Originating-Location: Kissimmee, Florida, US (97.100.22.132) X-Originating-Platform: Linux Chrome 83 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Sun, 23 Aug 2020 19:00:40 -0700 Message-ID: Content-Type: multipart/alternative; boundary="73WHahmNl3QMY67IVZYZ" --73WHahmNl3QMY67IVZYZ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello all - I'm a beginner Ycoto user and I'm trying to build raspberrypi4-64 image fo= r my project. I've been able to build an image and boot it successfully ini= tially, 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 part= itions 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 u= id 1000, including /sbin/init , /bin/mount , /lib/systemd/sytemd =E2=80=A6 = I was under the impression those should be owned by root user. I would really appreciate any help, I cannot find anything online regardin= g this issue. Please see below my conf/local.conf: DISTRO_FEATURES +=3D " ${DISTRO_FEATURES_LIBC} wifi ipv4 virtualization sy= stemd" DISTRO_FEATURES_BACKFILL_CONSIDERED =3D "sysvinit" VIRTUAL - RUNTIME_init_manager =3D "systemd" VIRTUAL - RUNTIME_initscripts =3D "" MACHINE_FEATURES_remove =3D "apm" IMAGE_FSTYPES =3D "rpi-sdimg" MACHINE =3D "raspberrypi4-64" DISABLE_SPLASH =3D "1" ENABLE_UART =3D "1" RPI_USE_U_BOOT =3D "1" PREFERRED_VERSION_linux - raspberrypi =3D "5.4.%" DISTRO =3D "poky" PACKAGE_CLASSES =3D "package_ipk" EXTRA_IMAGE_FEATURES =3D "debug-tweaks" IMAGE_INSTALL_append =3D " wpa-supplicant docker-ce python3-docker-compose= openssh avahi-daemon kernel-image kernel-devicetree" --73WHahmNl3QMY67IVZYZ Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

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 bui= ld an image and boot it successfully initially, but when I switched from sy= svinit 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] Fa=
iled to mount Temporary Directory (/tmp)

When I use the emergency shell to check the logs of thos= e systemd services, I am seeing this error:

"must be superuser to use mount."

I even tried to manually mount partitions in the emergen= cy 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, everyt= hing is owned by uid 1000, including /sbin/init, /bin/mount, /lib/syst= emd/sytemd… I was under the impression those should be owned = by root user.

I would really appreciate any help, I cannot find anythi= ng online regarding this issue.

Please see below my conf/local.conf:

DISTRO_FEATURES +=3D " ${DISTRO_FEATURES_LIBC} wifi ipv4 virtualization s= ystemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED =3D "sysvinit"
VIRTUAL-RUNTIME_init_manager =3D "= systemd"
VIRTUAL-RUNTIME_initscripts =3D ""=
MACHINE_FEATURES_remove =3D "apm"
IMAGE_FSTYPES =3D "rpi-sdimg"
MACHINE =3D "raspberrypi4-64"
DISABLE_SPLASH =3D "1"
ENABLE_UART =3D "1"
RPI_USE_U_BOOT =3D "1"
PREFERRED_VERSION_linux-raspberrypi =3D "5.4.%"
DISTRO =3D "poky"
PACKAGE_CLASSES =3D "package_ipk"
EXTRA_IMAGE_FEATURES =3D "debug-tweaks"
IMAGE_INSTALL_append =3D " wpa-supplicant docker-ce python3-docker-compos= e openssh avahi-daemon kernel-image kernel-devicetree"



 
--73WHahmNl3QMY67IVZYZ--