Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=bmf.git;a=commitdiff;h=de5fc8c525c1166c20928e90390a755c4002e5df

commit de5fc8c525c1166c20928e90390a755c4002e5df
Author: crazy <[email protected]>
Date:   Tue Jan 12 23:25:28 2016 +0100

systemd-227-15-x86_64
* added noclear.conf.. we don't want tty1 cleared
* systemd.install: check /etc/fstab exists before doing something with it
well reboot is better but still reload the units and reexec
the daemons on update

diff --git a/source/base/systemd/FrugalBuild b/source/base/systemd/FrugalBuild
index 80e7447..f5f92fa 100644
--- a/source/base/systemd/FrugalBuild
+++ b/source/base/systemd/FrugalBuild
@@ -10,7 +10,7 @@ USE_SYSV_COMPAT=${USE_SYSV_COMPAT:-"y"}

pkgname=systemd
pkgver=227
-pkgrel=14
+pkgrel=15
pkgdesc="A System and Service Manager"
url="http://www.freedesktop.org/wiki/Software/systemd";
rodepends=('scriptlet-core')
@@ -167,6 +167,15 @@ build()

Frm etc/systemd/system/*.target.wants

+       ## we want tty1 at least to be *NOT* cleared but the getty@ Unit has : 
TTYVTDisallocate=yes
+       ## and since this is uses for symliks to any @ttyx.service we'll still 
clear the tty
+       ## override that..
+       Fmkdir etc/systemd/system/[email protected]
+cat > $Fdestdir/etc/systemd/system/[email protected]/noclear.conf << EOF
+[Service]
+TTYVTDisallocate=no
+EOF
+
# /etc/sysconfig/desktop compatibility
Frm /lib/systemd/system/display-manager.service # Will be upstreamed for next 
release
Ffile /lib/systemd/system/display-manager-legacy.service
diff --git a/source/base/systemd/systemd.install 
b/source/base/systemd/systemd.install
index 2ad5397..298c895 100644
--- a/source/base/systemd/systemd.install
+++ b/source/base/systemd/systemd.install
@@ -14,7 +14,9 @@ post_common() {
getent group input 2>&1 > /dev/null || /usr/sbin/groupadd -g 120 input

# remove obsolete fstab entries
-       sed -i '\/proc\/bus\/usb/d' /etc/fstab
+       if [ -e /etc/fstab ]; then
+               sed -i '\/proc\/bus\/usb/d' /etc/fstab
+       fi

if [ -p /run/systemd/initctl/fifo ] && [ ! -L /dev/initctl ]; then
ln -sf /run/systemd/initctl/fifo /dev/initctl
@@ -37,8 +39,10 @@ post_upgrade() {
post_common

# reload systemd (not for big update.. better do a reboot)
-       # systemctl daemon-reexec
-       echo "Please reboot the system"
+       # well better but some won't so reload the units and reexec the deamons 
-- crazy ---
+       systemctl daemon-reload
+       systemctl daemon-reexec
+       echo "You may want to reboot reboot the system"

true
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to