19 lines
320 B
Bash
19 lines
320 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
mount --make-rshared /
|
||
|
|
||
|
modprobe br_netfilter
|
||
|
|
||
|
uuidgen > /etc/machine-id
|
||
|
|
||
|
sysctl -w net.bridge.bridge-nf-call-iptables=1
|
||
|
|
||
|
# Remove swap
|
||
|
cat /etc/fstab | grep -v swap > temp.fstab
|
||
|
cat temp.fstab > /etc/fstab
|
||
|
rm temp.fstab
|
||
|
swapoff -a
|
||
|
|
||
|
#lvremove -y /dev/vg0/lv_swap
|
||
|
#lvextend -y -r -l +100%FREE /dev/vg0/lv_root
|