mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-12-22 20:15:03 +01:00
Optimized setup script
This commit is contained in:
parent
3a6383891a
commit
b8337b5699
@ -85,15 +85,16 @@ To pase the configuration to the program use this syntax:
|
||||
echo "$USER" # | The username
|
||||
echo "mmcblk1" # | The device
|
||||
echo "3" # | The raspberry pi number
|
||||
echo "arch" # | The operation system
|
||||
echo "arch" # | The operation system
|
||||
#echo "n" # ├── If arch: Should a encrypted setup be used? (y/n)
|
||||
echo "n" # | Force image download
|
||||
echo "n" # | Transfer image
|
||||
#echo "n" # ├── Overwrite device before copying
|
||||
#echo "n" # ├── If image transfer yes Overwrite device before copying? (y/n)
|
||||
echo "test12345" # | The user password
|
||||
echo "test12345" # | The root password
|
||||
echo "example-host" # | The hostname
|
||||
echo "y" # | Setup Wifi on target system
|
||||
)| sudo bash ./sd_setup.sh
|
||||
)| sudo bash ./scripts/image/setup.sh
|
||||
```
|
||||
|
||||
## License
|
||||
|
@ -42,7 +42,7 @@ destructor(){
|
||||
umount -v "$chroot_dev_mount_path" || warning "Umounting $chroot_dev_mount_path failed!"
|
||||
umount -v "$chroot_proc_mount_path" || warning "Umounting $chroot_proc_mount_path failed!"
|
||||
umount -v "$chroot_sys_mount_path" || warning "Umounting $chroot_sys_mount_path failed!"
|
||||
umount -v "$root_mount_path""/boot/" || warning "Umounting $root_mount_path/boot/ failed!"
|
||||
umount -v "$root_mount_path""boot/" || warning "Umounting $root_mount_path""boot/ failed!"
|
||||
umount -v "$root_mount_path" || warning "Umounting $root_mount_path failed!"
|
||||
umount -v "$boot_mount_path" || warning "Umounting $boot_mount_path failed!"
|
||||
rmdir -v "$root_mount_path" || warning "Removing $root_mount_path failed!"
|
Loading…
Reference in New Issue
Block a user