From c865c40cef97b90a83178e29442f47c71af128dd Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 25 Jul 2024 15:05:26 -0600 Subject: [PATCH] fix --- debian.sh | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/debian.sh b/debian.sh index d2c1bdb..23ac2a5 100755 --- a/debian.sh +++ b/debian.sh @@ -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