Beiträge von Sauerland

    Habe noch etwas gefunden:

    Man soll unter openSUSE Leap 16 grundsätzlich YaST2 Bootloader oder das Tool sdbootutil verwenden(falls BLS aktiv ist), um die Konfiguration zu aktualisieren, statt manuelle Grub-Befehle verwenden.

    Stimmt so nicht.

    Code
    Name               : sdbootutil
    Beschreibung       : 
        bootctl wrapper for BLS boot loaders, like systemd-boot and grub2-bls.
        Implements also the life cycle of a full disk encryption installation,
        based on systemd.


    Code
    Name               : update-bootloader
    Beschreibung       : 
        Shell script wrapper for configuring various boot loaders.

    Und wenn du jetzt die manpages von pbl bzw. update-bootloader liest, dann sieht man auch, das dies Script einige Bootloader unterstützt:

    Lass dir einfach einmal die mitgelieferten Dateien anzeigen:

    Code
    rpm -ql update-bootloader

    Hidalgo


    Ich glaube der TE hat die selinux Sequenzen in /etc/default/grub eingetragen, aber vergessen den Bootloader neu zu schreiben.


    Nachdem jetzt noch net.ifnames=0 hinzugefügt wurde, diese Konfiguration mit update-bootloader --config geschrieben wurd, wurde n auch die selinux Einträge geschrieben.


    Hier mal ein Beispiel dazu:

    Hab mal nach selinux  gesucht, um die Zeilen zu posten:

    Also auch kein net.ifnames=0 vorhanden.

    Code
    linux64:/home/stephan # grep -i selinux /boot/grub2/grub.cfg 
            linux   /boot/vmlinuz-6.12.0-160000.8-default root=UUID=53d51072-1db6-4412-9955-0ccd307a2993  splash=silent resume=/dev/disk/by-uuid/40b208a5-8a0a-4eca-8948-fe42610ebca0 preempt=full rd.driver.blacklist=nouveau mitigations=auto ia32_emulation=1 selinux=0 ipv6.disable=1
                    linux   /boot/vmlinuz-6.12.0-160000.8-default root=UUID=53d51072-1db6-4412-9955-0ccd307a2993  splash=silent resume=/dev/disk/by-uuid/40b208a5-8a0a-4eca-8948-fe42610ebca0 preempt=full rd.driver.blacklist=nouveau mitigations=auto ia32_emulation=1 selinux=0 ipv6.disable=1
                    linux   /boot/vmlinuz-6.12.0-160000.7-default root=UUID=53d51072-1db6-4412-9955-0ccd307a2993  splash=silent resume=/dev/disk/by-uuid/40b208a5-8a0a-4eca-8948-fe42610ebca0 preempt=full rd.driver.blacklist=nouveau mitigations=auto ia32_emulation=1 selinux=0 ipv6.disable=1
                    linux   /boot/vmlinuz-6.12.0-160000.6-default root=UUID=53d51072-1db6-4412-9955-0ccd307a2993  splash=silent resume=/dev/disk/by-uuid/40b208a5-8a0a-4eca-8948-fe42610ebca0 preempt=full rd.driver.blacklist=nouveau mitigations=auto ia32_emulation=1 selinux=0 ipv6.disable=1
                    linux   /boot/vmlinuz-6.12.0-160000.5-default root=UUID=53d51072-1db6-4412-9955-0ccd307a2993  splash=silent resume=/dev/disk/by-uuid/40b208a5-8a0a-4eca-8948-fe42610ebca0 preempt=full rd.driver.blacklist=nouveau mitigations=auto ia32_emulation=1 selinux=0 ipv6.disable=1

    Jetzt füge ich net.ifnames=0 hinzu, es erscheint aber nur in /etc/default/grub

    Code
    linux64:/home/stephan # update-bootloader --add-option net.ifnames=0
    linux64:/home/stephan # grep -i  selinux /etc/default/*
    /etc/default/grub:GRUB_CMDLINE_LINUX_DEFAULT="splash=silent resume=/dev/disk/by-uuid/40b208a5-8a0a-4eca-8948-fe42610ebca0 preempt=full rd.driver.blacklist=nouveau mitigations=auto ia32_emulation=1 selinux=0 ipv6.disable=1 SAUERLAND net.ifnames=0"
    linux64:/home/stephan # grep -i net.ifnames=0 /boot/grub2/grub.cfg 
    linux64:/home/stephan #

    Was aber auffällt, ist das ein SAUERLAND auch noch in der Zeile vorkommt, aber in der 1. Ausgabe in /boot/grub/grub.cfg nicht.....


    Jetzt lassen wird den bootloader nach /boot/grub/grub.cfg schreiben:

    Code
    linux64:/home/stephan # update-bootloader --config
    linux64:/home/stephan # grep -i net.ifnames=0 /boot/grub2/grub.cfg 
            linux   /boot/vmlinuz-6.12.0-160000.8-default root=UUID=53d51072-1db6-4412-9955-0ccd307a2993  splash=silent resume=/dev/disk/by-uuid/40b208a5-8a0a-4eca-8948-fe42610ebca0 preempt=full rd.driver.blacklist=nouveau mitigations=auto ia32_emulation=1 selinux=0 ipv6.disable=1 SAUERLAND net.ifnames=0
                    linux   /boot/vmlinuz-6.12.0-160000.8-default root=UUID=53d51072-1db6-4412-9955-0ccd307a2993  splash=silent resume=/dev/disk/by-uuid/40b208a5-8a0a-4eca-8948-fe42610ebca0 preempt=full rd.driver.blacklist=nouveau mitigations=auto ia32_emulation=1 selinux=0 ipv6.disable=1 SAUERLAND net.ifnames=0
                    linux   /boot/vmlinuz-6.12.0-160000.7-default root=UUID=53d51072-1db6-4412-9955-0ccd307a2993  splash=silent resume=/dev/disk/by-uuid/40b208a5-8a0a-4eca-8948-fe42610ebca0 preempt=full rd.driver.blacklist=nouveau mitigations=auto ia32_emulation=1 selinux=0 ipv6.disable=1 SAUERLAND net.ifnames=0
                    linux   /boot/vmlinuz-6.12.0-160000.6-default root=UUID=53d51072-1db6-4412-9955-0ccd307a2993  splash=silent resume=/dev/disk/by-uuid/40b208a5-8a0a-4eca-8948-fe42610ebca0 preempt=full rd.driver.blacklist=nouveau mitigations=auto ia32_emulation=1 selinux=0 ipv6.disable=1 SAUERLAND net.ifnames=0
                    linux   /boot/vmlinuz-6.12.0-160000.5-default root=UUID=53d51072-1db6-4412-9955-0ccd307a2993  splash=silent resume=/dev/disk/by-uuid/40b208a5-8a0a-4eca-8948-fe42610ebca0 preempt=full rd.driver.blacklist=nouveau mitigations=auto ia32_emulation=1 selinux=0 ipv6.disable=1 SAUERLAND net.ifnames=0

    Und net.ifnames=0 ist geschrieben worden, aber auch SAUERLAND.


    Daher sehe ich, das der TE die selinux Einträge in /etc/default/grub eingefügt hat, aber den bootloader nicht hat schreiben lassen, egal ob jetzt mit pbl oder update-bootloader oder grub-mkconfig.


    Also PEBKAC

    Die standen dort nämlich drin

    Dann hast du zwar Parameter hinzugefügt, aber den Bootloader nicht mit

    Code
    grub2-mkconfig -o /boot/grub2/grub.cfg

    schreiben lassen.


    Wenn du mit update-bootloader --add-option OPTION etwas hinzufügst, wird es dann nur in /etc/default/grub eingetragen.

    Erst ein update-bootloader --config schreibt es in die /boot/grub/grub.cfg (führt grub2-mkconfig -o /boot/grub2/grub.cfg aus) und übernimmt dann auch deine selinux Einträge.......

    Als erstes:

    alles mit update-bootloader wieder einfügen, update-bootloader --config nicht vergessen.


    Dann:

    Code
    update-bootloader --del-option security=selinux
    Code
    update-bootloader --del-option selinux=1
    Code
    update-bootloader --del-option enforcing=1
    Code
    update-bootloader --config

    Danach posten:

    Code
    grep -i net.ifnames=0 /boot/grub2/grub.cfg