commit systemd-zram-service for openSUSE:Factory

2024-05-09 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package systemd-zram-service for 
openSUSE:Factory checked in at 2024-05-09 12:14:43

Comparing /work/SRC/openSUSE:Factory/systemd-zram-service (Old)
 and  /work/SRC/openSUSE:Factory/.systemd-zram-service.new.1880 (New)


Package is "systemd-zram-service"

Thu May  9 12:14:43 2024 rev:5 rq:1172870 version:0.2.1

Changes:

--- 
/work/SRC/openSUSE:Factory/systemd-zram-service/systemd-zram-service.changes
2022-09-14 16:20:35.159709248 +0200
+++ 
/work/SRC/openSUSE:Factory/.systemd-zram-service.new.1880/systemd-zram-service.changes
  2024-05-09 12:15:00.52543 +0200
@@ -1,0 +2,5 @@
+Thu May  9 01:39:07 UTC 2024 - Georg Pfuetzenreuter 

+
+- Require zram kernel module (avoid failure on systems with minimal kernel 
packages)
+
+---



Other differences:
--
++ systemd-zram-service.spec ++
--- /var/tmp/diff_new_pack.f7lBXT/_old  2024-05-09 12:15:00.981438775 +0200
+++ /var/tmp/diff_new_pack.f7lBXT/_new  2024-05-09 12:15:00.985438920 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package systemd-zram-service
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 # Copyright (c) 2012-2018 Malcolm J Lewis 
 #
 # All modifications and additions to the file contributed by third parties
@@ -29,8 +29,8 @@
 Source1:zramswapon
 Source2:zramswapoff
 Source3:zramswap.service
+Requires:   kmod(zram.ko)
 Conflicts:  compcache
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
 %systemd_requires
 
@@ -75,7 +75,6 @@
 %service_del_postun zramswap.service
 
 %files
-%defattr(-,root,root,-)
 %doc debian/copyright debian/changelog
 %{_sbindir}/rczramswap
 %{_sbindir}/zramswap*


commit systemd-zram-service for openSUSE:Factory

2022-09-14 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package systemd-zram-service for 
openSUSE:Factory checked in at 2022-09-14 16:20:34

Comparing /work/SRC/openSUSE:Factory/systemd-zram-service (Old)
 and  /work/SRC/openSUSE:Factory/.systemd-zram-service.new.2083 (New)


Package is "systemd-zram-service"

Wed Sep 14 16:20:34 2022 rev:4 rq:1003552 version:0.2.1

Changes:

--- 
/work/SRC/openSUSE:Factory/systemd-zram-service/systemd-zram-service.changes
2022-01-08 23:24:06.830255868 +0100
+++ 
/work/SRC/openSUSE:Factory/.systemd-zram-service.new.2083/systemd-zram-service.changes
  2022-09-14 16:20:35.159709248 +0200
@@ -1,0 +2,6 @@
+Wed Sep  7 00:00:00 CEST 2022 - dste...@suse.cz
+
+- disable multi-zram devices (deprecated, not necessary since 4.7)
+- change compression to zstd
+
+---



Other differences:
--
++ systemd-zram-service.spec ++
--- /var/tmp/diff_new_pack.pdJyl0/_old  2022-09-14 16:20:35.643710285 +0200
+++ /var/tmp/diff_new_pack.pdJyl0/_new  2022-09-14 16:20:35.647710294 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package systemd-zram-service
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 # Copyright (c) 2012-2018 Malcolm J Lewis 
 #
 # All modifications and additions to the file contributed by third parties

++ zramswapoff ++
--- /var/tmp/diff_new_pack.pdJyl0/_old  2022-09-14 16:20:35.699710405 +0200
+++ /var/tmp/diff_new_pack.pdJyl0/_new  2022-09-14 16:20:35.703710414 +0200
@@ -1,17 +1,7 @@
 #!/bin/bash
 
-# get the number of CPUs
-num_cpus=$(grep -c processor /proc/cpuinfo)
-
-# set decremented number of CPUs
-decr_num_cpus=$((num_cpus - 1))
-
 # Switching off swap
-for i in $(seq 0 $decr_num_cpus); do
-if [ "$(grep /dev/zram$i /proc/swaps)" != "" ]; then
-swapoff /dev/zram$i
-fi
-done
+swapoff /dev/zram0
 
 rmmod zram
 

++ zramswapon ++
--- /var/tmp/diff_new_pack.pdJyl0/_old  2022-09-14 16:20:35.719710448 +0200
+++ /var/tmp/diff_new_pack.pdJyl0/_new  2022-09-14 16:20:35.723710456 +0200
@@ -1,35 +1,19 @@
 #!/bin/bash
 
-# get the number of CPUs
-num_cpus=$(grep -c processor /proc/cpuinfo)
-# if something goes wrong, assume we have 1
-[ "$num_cpus" != 0 ] || num_cpus=1
-
-# set decremented number of CPUs
-decr_num_cpus=$((num_cpus - 1))
-
 # get the amount of memory in the machine
 mem_total_kb=$(grep MemTotal /proc/meminfo | grep -E --only-matching 
'[[:digit:]]+')
 mem_total=$((mem_total_kb * 1024))
 
-# load dependency modules
-#modprobe zram zram_num_devices=$num_cpus
-# Determine module parm
-mod_parm=$(modinfo zram |grep parm |tr -s " " |cut -f2 -d ":")
-modprobe zram $mod_parm=$num_cpus
-
-# initialize the devices
-for i in $(seq 0 $decr_num_cpus); do
-echo $((mem_total / num_cpus)) > /sys/block/zram$i/disksize
-done
-
-# Creating swap filesystems
-for i in $(seq 0 $decr_num_cpus); do
-mkswap /dev/zram$i
-done
+# load the dependency module
+modprobe zram
+
+# initialize the device with zstd compression algorithm
+echo zstd > /sys/block/zram0/comp_algorithm;
+echo $mem_total > /sys/block/zram0/disksize
+
+# Creating the swap filesystem
+mkswap /dev/zram0
 
 # Switch the swaps on
-for i in $(seq 0 $decr_num_cpus); do
-swapon -p 100 /dev/zram$i
-done
+swapon -p 100 /dev/zram0
 


commit systemd-zram-service for openSUSE:Factory

2022-01-08 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package systemd-zram-service for 
openSUSE:Factory checked in at 2022-01-08 23:23:32

Comparing /work/SRC/openSUSE:Factory/systemd-zram-service (Old)
 and  /work/SRC/openSUSE:Factory/.systemd-zram-service.new.1892 (New)


Package is "systemd-zram-service"

Sat Jan  8 23:23:32 2022 rev:3 rq:944766 version:0.2.1

Changes:

--- 
/work/SRC/openSUSE:Factory/systemd-zram-service/systemd-zram-service.changes
2021-11-28 21:31:48.973748419 +0100
+++ 
/work/SRC/openSUSE:Factory/.systemd-zram-service.new.1892/systemd-zram-service.changes
  2022-01-08 23:24:06.830255868 +0100
@@ -1,0 +2,5 @@
+Mon Dec 13 16:18:04 UTC 2021 - Johannes Segitz 
+
+- Drop hardenings again. The current set causes issues (bsc#1193402)
+
+---



Other differences:
--
++ systemd-zram-service.spec ++
--- /var/tmp/diff_new_pack.gS2Mc0/_old  2022-01-08 23:24:07.306256256 +0100
+++ /var/tmp/diff_new_pack.gS2Mc0/_new  2022-01-08 23:24:07.314256263 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package systemd-zram-service
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 # Copyright (c) 2012-2018 Malcolm J Lewis 
 #
 # All modifications and additions to the file contributed by third parties
@@ -23,7 +23,7 @@
 Summary:Systemd service for zram
 License:GPL-2.0-only
 Group:  System/Daemons
-Url:
https://code.launchpad.net/~elementary-os/elementaryos/zramswap-enabler
+URL:
https://code.launchpad.net/~elementary-os/elementaryos/zramswap-enabler
 Source0:zramswap-enabler-0.2.1.tar.bz2
 #Source0:   bzr branch lp:~elementary-os/elementaryos/zramswap-enabler
 Source1:zramswapon

++ zramswap.service ++
--- /var/tmp/diff_new_pack.gS2Mc0/_old  2022-01-08 23:24:07.350256293 +0100
+++ /var/tmp/diff_new_pack.gS2Mc0/_new  2022-01-08 23:24:07.354256295 +0100
@@ -8,19 +8,6 @@
 After=multi-user.target
 
 [Service]
-# added automatically, for details please see
-# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
-ProtectSystem=full
-ProtectHome=true
-PrivateDevices=true
-ProtectHostname=true
-ProtectClock=true
-ProtectKernelTunables=true
-ProtectKernelModules=true
-ProtectKernelLogs=true
-ProtectControlGroups=true
-RestrictRealtime=true
-# end of automatic additions 
 Type=oneshot
 ExecStart=/usr/sbin/zramswapon
 ExecStop=/usr/sbin/zramswapoff


commit systemd-zram-service for openSUSE:Factory

2021-11-28 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package systemd-zram-service for 
openSUSE:Factory checked in at 2021-11-28 21:30:27

Comparing /work/SRC/openSUSE:Factory/systemd-zram-service (Old)
 and  /work/SRC/openSUSE:Factory/.systemd-zram-service.new.1895 (New)


Package is "systemd-zram-service"

Sun Nov 28 21:30:27 2021 rev:2 rq:934425 version:0.2.1

Changes:

--- 
/work/SRC/openSUSE:Factory/systemd-zram-service/systemd-zram-service.changes
2018-12-28 12:33:56.360021333 +0100
+++ 
/work/SRC/openSUSE:Factory/.systemd-zram-service.new.1895/systemd-zram-service.changes
  2021-11-28 21:31:48.973748419 +0100
@@ -1,0 +2,6 @@
+Wed Nov 24 12:39:05 UTC 2021 - Johannes Segitz 
+
+- Added hardening to systemd service(s) (bsc#1181400). Modified:
+  * zramswap.service
+
+---



Other differences:
--
++ zramswap.service ++
--- /var/tmp/diff_new_pack.gUk5aH/_old  2021-11-28 21:31:49.397747062 +0100
+++ /var/tmp/diff_new_pack.gUk5aH/_new  2021-11-28 21:31:49.397747062 +0100
@@ -8,6 +8,19 @@
 After=multi-user.target
 
 [Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=true
+PrivateDevices=true
+ProtectHostname=true
+ProtectClock=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions 
 Type=oneshot
 ExecStart=/usr/sbin/zramswapon
 ExecStop=/usr/sbin/zramswapoff