d
This commit is contained in:
parent
8173e91a84
commit
f01c641791
@ -101,6 +101,7 @@ os-backup() {
|
||||
ls $TARGET/
|
||||
umount $TARGET
|
||||
}
|
||||
|
||||
os-restore() {
|
||||
rm -rf $TARGET/usr $TARGET/sbin $TARGET/lib32 $TARGET/libx32 $TARGET/lib $TARGET/vmlinuz* $TARGET/initrd* $TARGET/bin $TARGET/var $TARGET/root $TARGET/opt $TARGET/etc $TARGET/run
|
||||
clear
|
||||
@ -122,6 +123,7 @@ os-restore() {
|
||||
chown -R $USER:$USER $TARGET/home/$USER
|
||||
rm -f $TARGET/gentoo-kde.sh
|
||||
}
|
||||
|
||||
systemMounts() {
|
||||
echo
|
||||
echo "[Checking for BTRFS Partition]"
|
||||
@ -408,6 +410,7 @@ fstab() {
|
||||
echo "$BTRFS /home btrfs noatime,nodiratime,autodefrag,$COMPRESSION,subvol=@home 0 1" >>$TARGET/etc/fstab
|
||||
echo "$BTRFS /root btrfs noatime,nodiratime,autodefrag,$COMPRESSION,subvol=@root 0 1" >>$TARGET/etc/fstab
|
||||
}
|
||||
|
||||
accounts() {
|
||||
echo
|
||||
echo "Set Password for $USER"
|
||||
@ -426,7 +429,9 @@ accounts() {
|
||||
echo "Setting ROOT Password:"
|
||||
echo "root:$ROOT_PASSWORD" | chpasswd
|
||||
/usr/bin/hostnamectl set-hostname $ROOT_NAME
|
||||
chown -R $USER:$USER $TARGET/home/$USER
|
||||
}
|
||||
|
||||
btrfs-tweaks() {
|
||||
DISABLE_COW=("/var/lib/docker" "/volumes" "/var/lib/mysql" "/var/lib/libvirt")
|
||||
for i in "${DISABLE_COW[@]}"; do
|
||||
|
Loading…
Reference in New Issue
Block a user