This commit is contained in:
Your Name 2024-07-25 15:05:26 -06:00
parent 2f96d451e9
commit c865c40cef

View File

@ -169,13 +169,13 @@ live-os-restore() {
LIVE_OS_SUBVOL="@$(mount | grep -i ' / ' | cut -d '@' -f2 | sed 's/)//g')"
mount $LIVE_OS_DM /tmp/live
cd /tmp/live/$LIVE_OS_SUBVOL
rsync -a --delete . $TARGET/
rsync -a --delete . --exclude=sys/ --exclude=dev/ --exclude=proc/ --exclude=run/ $TARGET/
fstab
cp -f $SCRIPT/debian.sh $TARGET/usr/bin/
systemMounts
echo "[Copying Boot Files ]"
echo
cp -rf /tmp/boot/ $TARGET/boot/
cp -rf /boot/* $TARGET/boot/
chmod +x $TARGET/usr/bin/debian.sh
chroot $TARGET /usr/bin/debian.sh bootloader $1 $5 $2
chroot $TARGET /usr/bin/debian.sh btrfs-tweaks
@ -306,19 +306,19 @@ install() {
#unmount
}
installStableDiffusion() {
stableDiffusion() {
clear
VERSION="3.11"
apt update
apt install -y python$VERSION python$VERSION-venv
apt update
apt install -y $STABLE_DIFFUSION
cd /opt
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
cd stable-diffusion-webui
python3.11 -m venv venv
source venv/bin/activate
python3.11 -m pip install --upgrade pip wheel
TORCH_COMMAND='pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/rocm5.1.1' python launch.py --precision full --no-half
STABLE_VERSION="1.10.0-RC"
sudo apt update
sudo apt install -y python$VERSION python$VERSION-venv python3-pip
sudo apt install -y $STABLE_DIFFUSION
cd /home/$USER
rm -rf stable-diffusion-webui-*
wget https://github.com/AUTOMATIC1111/stable-diffusion-webui/archive/refs/tags/v$STABLE_VERSION.zip
unzip "v$STABLE_VERSION.zip"
cd /home/$USER/stable-diffusion-webui-$STABLE_VERSION
bash webui.sh
}
desktop() {
@ -527,7 +527,6 @@ locale() {
echo "locale-gen" >>$TARGET/setup.sh
}
partitions() {
echo
echo "Setting Up Partitions....."
@ -569,6 +568,8 @@ accounts() {
echo
echo "Set Password for $USER"
useradd -m -s /bin/bash $USER
mkdir /home/$USER
chown root:users /home
chown -R $USER:$USER /home/$USER
echo "$USER:$USER_PASSWORD" | chpasswd
gpasswd -a $USER wheel