Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 8807f95e9f | ||
|  | 790d573aa5 | 
							
								
								
									
										9
									
								
								config/hooks/live/0200-seafile.hook.chroot
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								config/hooks/live/0200-seafile.hook.chroot
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| wget -O - http://linux-clients.seafile.com/seafile.key | apt-key add - | ||||
| echo 'deb [arch=amd64] http://linux-clients.seafile.com/seafile-deb/buster/ stable main' > /etc/apt/sources.list.d/seafile.list | ||||
|  | ||||
| apt update | ||||
| apt install -y seafile-gui | ||||
|  | ||||
| exit 0 | ||||
							
								
								
									
										22
									
								
								stick_build
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										22
									
								
								stick_build
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| # stick_build /path/live-image.iso /dev/sdX | ||||
|  | ||||
| # Copie de l'image iso sur clé | ||||
| dd if=$1 of=$2 bs=4M status=progress | ||||
| sync | ||||
|  | ||||
| # Création de la partition dédiée à la persistence | ||||
| printf 'n\np\n\n\n\nw' | fdisk $2 | ||||
| mkfs.ext4 -L persistence ${2}3 | ||||
|  | ||||
| # Configuratio de la partition | ||||
| mount ${2}3 /mnt | ||||
| echo / union > /mnt/persistence.conf | ||||
| umount /mnt | ||||
|  | ||||
| # Fin | ||||
| echo "Terminé ! Vous pouvez booter sur la clé USB, la persistence sera auto-configurée lors du premier Boot !" | ||||
|  | ||||
|  | ||||
| exit 0 | ||||
		Reference in New Issue
	
	Block a user