Skip to content

Commit f1ce1bd

Browse files
committed
do not format zram disks
1 parent dba68af commit f1ce1bd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

os/installer/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ cat > $DISK_CONFIG_FILE << EOL
99
disk = {
1010
EOL
1111
for disk in $(lsblk --nodeps --json | jq '.blockdevices[] | select(.type == "disk" and .rm == false and .ro == false) | .name' -r); do # Find all attached disks
12+
if [[ disk == "zram"* ]] ; then
13+
continue
14+
fi
15+
1216
cat >> $DISK_CONFIG_FILE << EOL
1317
disk${DISK_COUNTER} = {
1418
device = "/dev/${disk}";

0 commit comments

Comments
 (0)