install.sh aktualisiert
This commit is contained in:
14
install.sh
14
install.sh
@@ -131,6 +131,20 @@ else
|
||||
echo -e "${RED}→${NC} Skipping unused kernel cleanup."
|
||||
fi
|
||||
|
||||
echo -e "${RED}→${NC} Configuring Overlayroot..."
|
||||
CONFIG_FILE="/etc/overlayroot.conf"
|
||||
echo 'overlayroot_cfgdisk="disabled"' | sudo tee "$CONFIG_FILE"
|
||||
echo 'overlayroot=""' | sudo tee -a "$CONFIG_FILE"
|
||||
read -p "Do you want to activate overlayfs? (y/n): " -r
|
||||
if [[ $REPLY =~ ^[Yy](e[Ss]?)?$ ]]; then
|
||||
echo 'overlayroot="tmpfs:overlayfs"' | sudo tee -a "$CONFIG_FILE"
|
||||
sudo raspi-config nonint do_overlayroot 0 >>/var/log/install 2>&1 && print_status "Overlayroot enabled in raspi-config"
|
||||
echo -e "${GREEN}✔${NC} Overlayroot has been activated."
|
||||
else
|
||||
echo 'overlayroot=""' | sudo tee -a "$CONFIG_FILE"
|
||||
echo -e "${RED}✖${NC} Overlayroot has not been activated."
|
||||
fi
|
||||
|
||||
echo -e "${RED}→${NC} Cleaning up installer..."
|
||||
sudo rm -rf ./rps-client >>/var/log/install 2>&1 && print_status "Installer cleaned up"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user