From 5f2d260827c525375bb72f24d960eaa4013dc206 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 25 Feb 2014 20:00:41 +0100 Subject: Restart splash screen in stage32 (if booting with splashscreen enabled) --- remote/rootfs/rootfs-stage31/data/init | 6 ++++++ .../rootfs-stage32/data/etc/systemd/system/fbsplash.service | 10 ++++++++++ .../rootfs-stage32/data/etc/systemd/system/killsplash.service | 2 ++ 3 files changed, 18 insertions(+) create mode 100644 remote/rootfs/rootfs-stage32/data/etc/systemd/system/fbsplash.service diff --git a/remote/rootfs/rootfs-stage31/data/init b/remote/rootfs/rootfs-stage31/data/init index 198f8913..a4de8131 100755 --- a/remote/rootfs/rootfs-stage31/data/init +++ b/remote/rootfs/rootfs-stage31/data/init @@ -115,6 +115,12 @@ for mnt in proc sys run ; do busybox umount -f -l "/$mnt" 2>/dev/null done +# make sure the splash screen is restarted in stage32 +if [ "$SPLASH" -eq 1 ]; then + ln -s "../fbsplash.service" "${FUTURE_ROOT}/etc/systemd/system/sysinit.target.wants/fbsplash.service" + killall fbsplash +fi + echo "Switching root...." echo "$bench_result" > "${FUTURE_ROOT}/opt/openslx/.benchmark" # Prepare environment (HOME is needed as a hack for nss_ldap with ssl and no caching) diff --git a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/fbsplash.service b/remote/rootfs/rootfs-stage32/data/etc/systemd/system/fbsplash.service new file mode 100644 index 00000000..39d56ec0 --- /dev/null +++ b/remote/rootfs/rootfs-stage32/data/etc/systemd/system/fbsplash.service @@ -0,0 +1,10 @@ +[Unit] +Description=Revive fbsplash splash-screen +DefaultDependencies=no +After=systemd-tmpfiles-setup-dev.service +Before=sysinit.target + +[Service] +ExecStart=/opt/openslx/sbin/fbsplash -x -c -s /etc/splash.ppm +ExecStop=/opt/openslx/usr/bin/killall fbsplash + diff --git a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/killsplash.service b/remote/rootfs/rootfs-stage32/data/etc/systemd/system/killsplash.service index c3e088c8..1759b798 100644 --- a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/killsplash.service +++ b/remote/rootfs/rootfs-stage32/data/etc/systemd/system/killsplash.service @@ -5,6 +5,8 @@ DefaultDependencies=no [Service] Type=oneshot +ExecStart=-/usr/bin/systemctl stop fbsplash.service ExecStart=-/opt/openslx/usr/bin/killall fbsplash ExecStart=/opt/openslx/bin/true RemainAfterExit=no + -- cgit v1.2.3-55-g7522 From 0dc4905aa03ff17d0f19dc80c7ebcee38e7d8c55 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 26 Feb 2014 11:37:36 +0100 Subject: Tweaked fbsplash to survive switch_root, kill it before spawning getty or kdm --- remote/modules/kdm/data/etc/systemd/system/kdm.service | 1 + .../systemd/data/usr/lib/systemd/system/getty@.service | 6 +++--- remote/rootfs/rootfs-stage31/data/init | 7 +------ .../rootfs-stage32/data/etc/systemd/system/fbsplash.service | 10 ---------- .../etc/systemd/system/getty.target.wants/killsplash.service | 1 - .../data/etc/systemd/system/killsplash.service | 12 ------------ 6 files changed, 5 insertions(+), 32 deletions(-) delete mode 100644 remote/rootfs/rootfs-stage32/data/etc/systemd/system/fbsplash.service delete mode 120000 remote/rootfs/rootfs-stage32/data/etc/systemd/system/getty.target.wants/killsplash.service delete mode 100644 remote/rootfs/rootfs-stage32/data/etc/systemd/system/killsplash.service diff --git a/remote/modules/kdm/data/etc/systemd/system/kdm.service b/remote/modules/kdm/data/etc/systemd/system/kdm.service index e07ae6fc..da5e2729 100644 --- a/remote/modules/kdm/data/etc/systemd/system/kdm.service +++ b/remote/modules/kdm/data/etc/systemd/system/kdm.service @@ -4,6 +4,7 @@ Conflicts=getty@tty7.service After=systemd-user-sessions.service getty@tty7.service setup-slx-addon@nvidia_libs.service [Service] +ExecStartPre=-/opt/openslx/usr/bin/killall fbsplash ExecStart=/usr/bin/kdm -nodaemon Restart=always IgnoreSIGPIPE=no diff --git a/remote/modules/systemd/data/usr/lib/systemd/system/getty@.service b/remote/modules/systemd/data/usr/lib/systemd/system/getty@.service index 7e218d11..3586e04a 100644 --- a/remote/modules/systemd/data/usr/lib/systemd/system/getty@.service +++ b/remote/modules/systemd/data/usr/lib/systemd/system/getty@.service @@ -1,4 +1,5 @@ # This file is part of systemd. +# Patched for OpenSLX # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by @@ -9,7 +10,7 @@ Description=Getty on %I Documentation=man:agetty(8) man:systemd-getty-generator(8) Documentation=http://0pointer.de/blog/projects/serial-console.html -After=systemd-user-sessions.service plymouth-quit-wait.service +After=systemd-user-sessions.service After=rc-local.service # If additional gettys are spawned during boot then we should make @@ -24,6 +25,7 @@ IgnoreOnIsolate=yes ConditionPathExists=/dev/tty0 [Service] +ExecStartPre=-/opt/openslx/usr/bin/killall fbsplash # the VT is cleared by TTYVTDisallocate ExecStart=-/sbin/agetty --noclear %I 38400 linux Type=idle @@ -45,5 +47,3 @@ Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETA # instead, to ensure that login terminates cleanly. KillSignal=SIGHUP -[Install] -Alias=getty.target.wants/getty@tty1.service diff --git a/remote/rootfs/rootfs-stage31/data/init b/remote/rootfs/rootfs-stage31/data/init index a4de8131..b3681eee 100755 --- a/remote/rootfs/rootfs-stage31/data/init +++ b/remote/rootfs/rootfs-stage31/data/init @@ -63,6 +63,7 @@ if [ "$SPLASH" -eq 1 ]; then echo "1 1 0 1" > /proc/sys/kernel/printk exec 4>&1 5>&2 > /dev/null 2>&1 MUTED_OUTPUT=1 + echo -e "\033[?25l" setsid fbsplash -x -c -s /etc/splash.ppm & fi else @@ -115,12 +116,6 @@ for mnt in proc sys run ; do busybox umount -f -l "/$mnt" 2>/dev/null done -# make sure the splash screen is restarted in stage32 -if [ "$SPLASH" -eq 1 ]; then - ln -s "../fbsplash.service" "${FUTURE_ROOT}/etc/systemd/system/sysinit.target.wants/fbsplash.service" - killall fbsplash -fi - echo "Switching root...." echo "$bench_result" > "${FUTURE_ROOT}/opt/openslx/.benchmark" # Prepare environment (HOME is needed as a hack for nss_ldap with ssl and no caching) diff --git a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/fbsplash.service b/remote/rootfs/rootfs-stage32/data/etc/systemd/system/fbsplash.service deleted file mode 100644 index 39d56ec0..00000000 --- a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/fbsplash.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Revive fbsplash splash-screen -DefaultDependencies=no -After=systemd-tmpfiles-setup-dev.service -Before=sysinit.target - -[Service] -ExecStart=/opt/openslx/sbin/fbsplash -x -c -s /etc/splash.ppm -ExecStop=/opt/openslx/usr/bin/killall fbsplash - diff --git a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/getty.target.wants/killsplash.service b/remote/rootfs/rootfs-stage32/data/etc/systemd/system/getty.target.wants/killsplash.service deleted file mode 120000 index 40a962d5..00000000 --- a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/getty.target.wants/killsplash.service +++ /dev/null @@ -1 +0,0 @@ -../killsplash.service \ No newline at end of file diff --git a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/killsplash.service b/remote/rootfs/rootfs-stage32/data/etc/systemd/system/killsplash.service deleted file mode 100644 index 1759b798..00000000 --- a/remote/rootfs/rootfs-stage32/data/etc/systemd/system/killsplash.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=Stop splash screen -Before=getty.target graphical.target -DefaultDependencies=no - -[Service] -Type=oneshot -ExecStart=-/usr/bin/systemctl stop fbsplash.service -ExecStart=-/opt/openslx/usr/bin/killall fbsplash -ExecStart=/opt/openslx/bin/true -RemainAfterExit=no - -- cgit v1.2.3-55-g7522 From 8aa922b32cb44352b50b2eda7607ee8e1e3929b4 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 26 Feb 2014 11:48:20 +0100 Subject: [rfs-stage31] Update drm hint list: nvidia ion, some intel chip in Dell Optiplex GX 620 --- remote/rootfs/rootfs-stage31/data/inc/drm.functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remote/rootfs/rootfs-stage31/data/inc/drm.functions b/remote/rootfs/rootfs-stage31/data/inc/drm.functions index 666f22a9..20083724 100644 --- a/remote/rootfs/rootfs-stage31/data/inc/drm.functions +++ b/remote/rootfs/rootfs-stage31/data/inc/drm.functions @@ -37,7 +37,7 @@ load_gfx () { setup_gfx () { local KERN RETVAL CARD CARDS SUCCESS FILES DRM # check which driver to load - CARDS=$(lspci | grep 'Class 03' | awk '{print $4}') + CARDS=$(lspci | grep 'Class 0300' | awk '{print $4}') if [ -e "/drm.cfg" ] && [ -n "$CARDS" ]; then SUCCESS="yes" for CARD in $CARDS; do -- cgit v1.2.3-55-g7522 From b827251e14d83282b639afcb5c9eea63c65cb4cc Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 26 Feb 2014 11:52:33 +0100 Subject: sdfoighsdihoi --- remote/rootfs/rootfs-stage31/templates/drm.cfg | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/remote/rootfs/rootfs-stage31/templates/drm.cfg b/remote/rootfs/rootfs-stage31/templates/drm.cfg index f0a9db0c..45eda39f 100644 --- a/remote/rootfs/rootfs-stage31/templates/drm.cfg +++ b/remote/rootfs/rootfs-stage31/templates/drm.cfg @@ -1,6 +1,12 @@ -# nvidia +## nvidia +# 8800 GTS 10de:0193 @nvidia +# ION +10de:087d @nvidia +## intel +# Dell GX 620 +8086:2772 i915 # aliases @nvidia nvidia/nvidia.ko nvidia/nvidia-uvm.ko @nvidia_fallback nouveau - +## -- cgit v1.2.3-55-g7522