FUCKING FUCK

This commit is contained in:
2026-01-25 01:02:05 +03:00
parent 9434b59c51
commit 4976ae08c4

12
plct.sh
View File

@@ -1,6 +1,6 @@
#!/bin/bash
printf "welcome to portable linux creation tool v1.0p1\n"
printf "welcome to portable linux creation tool v1.0p2\n"
printf "available distros: debian\n\n"
while true; do
@@ -92,7 +92,7 @@ prepare_debian() {
exit 1
fi
if [ ! -n $mount ]; then
if [ -n $disk ]; then
while true; do
read -rp "everything is ok, type 'no' to cancel or 'yes' to preceed installation of debian $choice to $disk with $table table (DATA ON $disk WILL BE LOST): " proceeding
if [ "$proceeding" = "no" ]; then
@@ -122,7 +122,7 @@ prepare_debian() {
}
install_debian() {
if [ ! -n "$mount" ]; then
if [ -n "$disk" ]; then
echo "unmounting $disk"
umount $disk*
@@ -195,7 +195,7 @@ install_debian() {
$RUN grub-install --target=x86_64-efi --efi-directory=/boot --removable
$RUN update-grub
if [ ! -n "$mount" ]; then
if [ -n "$disk" ]; then
efi_uuid=$(blkid -s UUID -o value ${disk}${prefix}1)
root_uuid=$(blkid -s UUID -o value ${disk}${prefix}2)
echo "UUID=$efi_uuid /boot/ vfat umask=0077 0 1" >> $mount/etc/fstab
@@ -207,14 +207,14 @@ install_debian() {
$RUN grub-install $disk
$RUN update-grub
if [ ! -n "$mount" ]; then
if [ -n "$disk" ]; then
root_uuid=$(blkid -s UUID -o value ${disk}${prefix}1)
echo "UUID=$root_uuid / ext4 defaults,noatime 0 1" >> $mount/etc/fstab
fi
fi
echo 'done! chrooted you into installed system. type "exit" to finish the installation'
if [ -n "$mount" ]; then
if [ ! -n "$disk" ]; then
echo "pls generate fstab manually"
fi
$RUN /bin/bash