Skip to contentSkip to conversation

zram: fix sourcing of zram parameters

PATCH Ulrich ?lmann 2 participants 2 messages Jan 28, 2021 – Jan 29, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Gentle ping!

Quoted 23 lines · Ulrich ?lmann

From: Søren Andersen <[email protected]>

(cherry picked from commit 3c8ad9192c1c9f4323bdc7ff28456f11db689adb)
---
 meta-oe/recipes-extended/zram/zram/zram-swap-init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/zram/zram/zram-swap-init +1 -1
index 0643dbca2341..ccc3aafe3a6f 100755
@@ -14,7 +14,7 @@ fi
 ZRAM_SIZE_PERCENT=100
 ZRAM_ALGORITHM=lz4
 
-[ -f /etc/default/zram ] && ./etc/default/zram || true
+[ -f /etc/default/zram ] && . /etc/default/zram || true
 
 memtotal=$(grep MemTotal /proc/meminfo | awk ' { print $2 } ')
 memzram=$(($memtotal*${ZRAM_SIZE_PERCENT}/100))
Signature · 4 lines
Pengutronix e.K.                           | Ulrich Ölmann               |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#2 lore raw
Quoted 1 line · Ulrich ?lmann

Gentle ping!

running is a build now. May take a few days to finish.

-armin

Quoted 28 lines · Ulrich ?lmann
Quoted 26 lines

From: Søren Andersen <[email protected]>

(cherry picked from commit 3c8ad9192c1c9f4323bdc7ff28456f11db689adb)
---
 meta-oe/recipes-extended/zram/zram/zram-swap-init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/zram/zram/zram-swap-init +1 -1
index 0643dbca2341..ccc3aafe3a6f 100755
@@ -14,7 +14,7 @@ fi
 ZRAM_SIZE_PERCENT=100
 ZRAM_ALGORITHM=lz4
 
-[ -f /etc/default/zram ] && ./etc/default/zram || true
+[ -f /etc/default/zram ] && . /etc/default/zram || true
 
 memtotal=$(grep MemTotal /proc/meminfo | awk ' { print $2 } ')
 memzram=$(($memtotal*${ZRAM_SIZE_PERCENT}/100))