mirror of
				https://github.com/kevinveenbirkenbach/linux-image-manager.git
				synced 2025-11-04 09:28:01 +00:00 
			
		
		
		
	Optimized setup script
This commit is contained in:
		@@ -85,15 +85,16 @@ To pase the configuration to the program use this syntax:
 | 
				
			|||||||
  echo "$USER"              # | The username
 | 
					  echo "$USER"              # | The username
 | 
				
			||||||
  echo "mmcblk1"            # | The device
 | 
					  echo "mmcblk1"            # | The device
 | 
				
			||||||
  echo "3"                  # | The raspberry pi number
 | 
					  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"                  # | Force image download
 | 
				
			||||||
  echo "n"                  # | Transfer image
 | 
					  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 user password
 | 
				
			||||||
  echo "test12345"          # | The root password
 | 
					  echo "test12345"          # | The root password
 | 
				
			||||||
  echo "example-host"       # | The hostname
 | 
					  echo "example-host"       # | The hostname
 | 
				
			||||||
  echo "y"                  # | Setup Wifi on target system
 | 
					  echo "y"                  # | Setup Wifi on target system
 | 
				
			||||||
)| sudo bash ./sd_setup.sh
 | 
					)| sudo bash ./scripts/image/setup.sh
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## License
 | 
					## License
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,7 +42,7 @@ destructor(){
 | 
				
			|||||||
  umount -v "$chroot_dev_mount_path" || warning "Umounting $chroot_dev_mount_path failed!"
 | 
					  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_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 "$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 "$root_mount_path" || warning "Umounting $root_mount_path failed!"
 | 
				
			||||||
  umount -v "$boot_mount_path" || warning "Umounting $boot_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!"
 | 
					  rmdir -v "$root_mount_path" || warning "Removing $root_mount_path failed!"
 | 
				
			||||||
		Reference in New Issue
	
	Block a user