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