On 3 April 2018 at 03:38, Peter Robinson <pbrobin...@gmail.com> wrote:
[..]
> What if you do a "touch .autorelabel" in the root of the root
> filesystem to force a relabel on the first boot before initial-setup
> runs.

I'm almost sure that it will not help because with default selinux=1
boot is stuck still in initrd.
Just checked dmesg:

[..]
[   18.402415] vc4_hdmi 3f902000.hdmi: vc4-hdmi-hifi <-> 3f902000.hdmi
mapping ok
[   18.422995] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[   18.450260] vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4])
[   18.468053] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[   18.486261] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops
vc4_crtc_ops [vc4])
[   18.506146] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops
vc4_crtc_ops [vc4])
[   18.506777] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops
vc4_crtc_ops [vc4])
[   18.569543] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[   18.569581] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   18.580844] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[   18.595795] hub 1-1:1.0: USB hub found
[   18.609021] checking generic (3e914000 6d9000) vs hw (0 ffffffffffffffff)
[   18.626159] hub 1-1:1.0: 5 ports detected
[   18.640066] fb: switching to vc4drmfb from EFI VGA

<< with default selinux=1 it stops here >>

[   18.671393] Console: switching to colour dummy device 80x25
[   18.702393] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[   18.709790] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   18.716637] [drm] Driver supports precise vblank timestamp query.
[   18.805698] Console: switching to colour frame buffer device 240x67
[   18.879057] vc4-drm soc:gpu: fb0:  frame buffer device
[   18.988315] usb 1-1.1: new high-speed USB device number 3 using dwc2
[   19.011445] systemd-udevd (438) used greatest stack depth: 10912 bytes left
[   19.027454] systemd-udevd (436) used greatest stack depth: 10752 bytes left
[   19.061440] systemd-udevd (442) used greatest stack depth: 10672 bytes left
[   19.120103] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[   19.128767] usb 1-1.1: New USB device strings: Mfr=0, Product=0,
SerialNumber=0
[   19.268582] usb 1-1.3: new low-speed USB device number 4 using dwc2
[   19.277077] smsc95xx v1.0.6
[   19.422140] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at
usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:e9:2e:56
[   19.446206] usbcore: registered new interface driver smsc95xx
[   19.801281] usb 1-1.3: New USB device found, idVendor=413c, idProduct=2003
[   19.809224] usb 1-1.3: New USB device strings: Mfr=1, Product=2,
SerialNumber=0
[   19.817078] usb 1-1.3: Product: Dell USB Keyboard
[   19.822257] usb 1-1.3: Manufacturer: Dell
[   20.235616] input: Dell Dell USB Keyboard as
/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:413C:2003.0001/input/input1
[   20.330813] hid-generic 0003:413C:2003.0001: input,hidraw0: USB HID
v1.10 Keyboard [Dell Dell USB Keyboard] on usb-3f980000.usb-1.3/input0
[   20.345408] random: crng init done

<< and below is rootfs mount, then only after mounting rootfs presence
of the /.autorelabel may create different condition >>

[   23.289794] EXT4-fs (mmcblk0p5): mounted filesystem with ordered
data mode. Opts: (null)
[   27.888339] systemd-journald[187]: Received SIGTERM from PID 1 (systemd).
[   29.242999] systemd: 14 output lines suppressed due to ratelimiting
[   30.177243] systemd[1]: RTC configured in localtime, applying delta
of -300 minutes to system time.
[   30.253731] systemd[1]: systemd 238 running in system mode. (+PAM
+AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP
+GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2
-IDN +PCRE2 default-hierarchy=hybrid)
[   30.301360] systemd[1]: Detected architecture arm64.
[   30.338705] systemd[1]: Set hostname to <localhost.localdomain>.
[   32.023212] systemd[1]: Stopped Switch Root.
[   32.042117] systemd[1]: systemd-journald.service: Service has no
hold-off time, scheduling restart.
[   32.042651] systemd[1]: systemd-journald.service: Scheduled restart
job, restart counter is at 1.
[   32.042752] systemd[1]: Stopped Journal Service.
[   32.144213] systemd[1]: Starting Remount Root and Kernel File Systems...
[   32.178055] systemd[1]: Set up automount Arbitrary Executable File
Formats File System Automount Point.
[   32.255864] systemd[1]: Listening on Process Core Dump Socket.
[   32.283562] EXT4-fs (mmcblk0p5): re-mounted. Opts: (null)
[   33.837208] systemd-journald[599]: Received request to flush
runtime journal from PID 1
[   34.025517] systemd-journald[599]: File
/var/log/journal/828c7422f9984510b5577d91d0ed9dae/system.journal
corrupted or uncleanly shut down, renaming and replacing.
[   42.294224] bcm2835-rng 3f104000.rng: hwrng registered
[   42.330494] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer

Above it is still from dmesg messages of the first boot in which
initial-setup has been started.

Theoretically selinux=1 should not be affecting fb initialization but
knowing that that I had SELinux issue on NanoPi Neo2 at some point
I've prepared fresh RPi3 sd card with added selinux=0 in grub2.cfg
file and whole boot passed this critical point.
Maybe next step afer display this message is affected by selinux=1?

Will try confirm above tomorrow (now I must finish some new base setup
of some POC on this RPi3).

kloczek
--
Tomasz Kłoczko | LinkedIn: http://lnkd.in/FXPWxH
_______________________________________________
arm mailing list -- arm@lists.fedoraproject.org
To unsubscribe send an email to arm-le...@lists.fedoraproject.org

Reply via email to