opti for arm

This commit is contained in:
Hugo Poissonnet 2020-10-24 14:49:27 +02:00
parent 432fe563c3
commit f9ca0cd9d2
2 changed files with 9 additions and 5 deletions

View File

@ -8,13 +8,17 @@
/var/lib/dpkg/*
/var/run/*
/var/cache/*
/var/log*
/boot/*
/usr/lib/modules/*
/usr/lib/python*
/usr/lib/*-linux-gnu/perl*
/usr/lib/*-linux-*/perl*
/usr/share/GeoIP*
/usr/share/man*
/usr/share/i18n*
/usr/share/perl*
/usr/share/doc*
/usr/share/locale*
/usr/include*
/usr/lib/firmware*
/usr/lib/gcc*

View File

@ -1,13 +1,13 @@
#!/bin/sh
sudo modprobe zram num_devices=4
echo 1G | sudo tee /sys/block/zram0/disksize
sudo mkfs.ext4 -m0 /dev/zram0
echo 500M | sudo tee /sys/block/zram2/disksize
sudo mkfs.ext4 -m0 /dev/zram2
mkdir /tmp/sys
sudo mount /dev/zram0 /tmp/sys
sudo mount /dev/zram2 /tmp/sys
sudo tar -cpSf - \
--acls --xattrs --selinux \
--exclude-from /vagrant/exclude.list \
--exclude-from ./exclude.list \
/ |
sudo tar -xvf - \
--acls --xattrs --selinux \