Compare commits
	
		
			11 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 37e8db3ac6 | ||
|  | 4d293a9b4b | ||
|  | 85286ab92b | ||
|  | 2af9e65c7f | ||
|  | 107c2cbcdc | ||
|  | 997ec957e0 | ||
|  | 276c52b70a | ||
|  | 132869796e | ||
|  | cda11895ff | ||
|  | 23b22027a0 | ||
|  | 91026b6d65 | 
							
								
								
									
										22
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								README.md
									
									
									
									
									
								
							| @@ -2,15 +2,23 @@ | ||||
|  | ||||
| Système d'exploitation x64 - 100% GNU basé sur Debian | ||||
|  | ||||
| ## Build live via live-build | ||||
| ## Installation (root) | ||||
| ### Generer iso seule | ||||
| ``` | ||||
| curl https://git.weblib.re/svpro/svpro_gnu/raw/branch/develop/build_svprognu | bash | ||||
| ``` | ||||
| ### Créer clef usb + persistence | ||||
| **Attention ! La clef ne doit pas être montée par un autre processus (explorateur de fichiers, utilitaire d'auto-mount...) | ||||
| ``` | ||||
| curl https://git.weblib.re/svpro/svpro_gnu/raw/branch/develop/build_svprognu | bash -s -- -d /dev/sdX | ||||
| ``` | ||||
| **La persistence sera configurée lors du 1er boot. Le démarrage peut prendre quelques minutes. | ||||
|  | ||||
| ``` | ||||
| lb config | ||||
| lb build | ||||
| ``` | ||||
| ## Installation physique | ||||
| Depuis le menu du live, choisir "Installation Graphique ou Experts" | ||||
|  | ||||
| ### ToDo | ||||
|  | ||||
| - [x] Installeur | ||||
| - [ ] Live Persistence | ||||
| - [ ] Yunohost | ||||
| - [x] Live Persistence | ||||
| - [ ] Integration Yunohost | ||||
|   | ||||
							
								
								
									
										45
									
								
								build_svprognu
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										45
									
								
								build_svprognu
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,45 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| # Creation de la clef ./build_svprognu -d /dev/sdX | ||||
| # Creation de l'iso seule ./build_svprognu | ||||
|  | ||||
| set -e | ||||
|  | ||||
| apt install -y live-build git | ||||
| git clone https://git.weblib.re/svpro/svpro_gnu.git | ||||
| cd svpro_gnu && git checkout $(git tag -l | tail -n 1) | ||||
|  | ||||
| # Build iso | ||||
| lb clean | ||||
| lb config | ||||
| lb build | ||||
| ISO=$(ls *.iso) | ||||
| echo "ISO créée $(pwd)/$ISO" | ||||
| # Copie de l'image iso sur clé | ||||
| while getopts ":d: " opt; do | ||||
| case $opt in | ||||
|    d) | ||||
| 	echo "Transfert en cours..." | ||||
| 	dd if=${ISO} of=$OPTARG bs=4M status=progress | ||||
| 	sync | ||||
|  | ||||
| 	# Création de la partition dédiée à la persistence | ||||
| 	echo "Création de la persistence..." | ||||
| 	sleep 5 | ||||
| 	printf 'n\np\n\n\n\nw' | fdisk $OPTARG | ||||
| 	mkfs.ext4 -L persistence ${OPTARG}3 | ||||
|  | ||||
| 	# Configuratio de la partition | ||||
| 	mkdir -p ./tmp | ||||
| 	mount ${OPTARG}3 ./tmp | ||||
| 	echo "/ union" > ./tmp/persistence.conf | ||||
| 	umount ./tmp | ||||
|  | ||||
| 	# Fin | ||||
| 	echo "Terminé ! Vous pouvez booter sur la clé USB, la persistence sera auto-configurée lors du premier Boot !" | ||||
| 	;; | ||||
|  | ||||
| esac | ||||
| done | ||||
|  | ||||
| exit 0 | ||||
| @@ -5,24 +5,8 @@ | ||||
| LB_DISTRIBUTION="buster" | ||||
|  | ||||
| # $LB_PARENT_DISTRIBUTION: select parent distribution to use | ||||
| # (Default: ) | ||||
| LB_PARENT_DISTRIBUTION="" | ||||
|  | ||||
| # $LB_DISTRIBUTION_CHROOT: select distribution to use in the chroot | ||||
| # (Default: buster) | ||||
| LB_DISTRIBUTION_CHROOT="buster" | ||||
|  | ||||
| # $LB_PARENT_DISTRIBUTION_CHROOT: select parent distribution to use in the chroot | ||||
| # (Default: buster) | ||||
| LB_PARENT_DISTRIBUTION_CHROOT="buster" | ||||
|  | ||||
| # $LB_DISTRIBUTION_BINARY: select distribution to use in the final image | ||||
| # (Default: buster) | ||||
| LB_DISTRIBUTION_BINARY="buster" | ||||
|  | ||||
| # $LB_PARENT_DISTRIBUTION_BINARY: select parent distribution to use in the final image | ||||
| # (Default: buster) | ||||
| LB_PARENT_DISTRIBUTION_BINARY="buster" | ||||
| LB_PARENT_DISTRIBUTION="buster" | ||||
|  | ||||
| # $LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION: select parent distribution for debian-installer to use | ||||
| # (Default: buster) | ||||
|   | ||||
| @@ -1,8 +1,7 @@ | ||||
| [Image] | ||||
| Architecture: amd64 | ||||
| Archive-Areas: main contrib non-free | ||||
| Distribution-Chroot: buster | ||||
| Distribution-Binary: buster | ||||
| Distribution: buster | ||||
| Mirror-Bootstrap: http://deb.debian.org/debian/ | ||||
|  | ||||
| [FIXME] | ||||
|   | ||||
| @@ -17,16 +17,8 @@ LB_INTERACTIVE="false" | ||||
| LB_KEYRING_PACKAGES="debian-archive-keyring" | ||||
|  | ||||
| # $LB_LINUX_FLAVOURS: set kernel flavour to use | ||||
| # This is kept for backwards compatibility | ||||
| # (Default: autodetected) | ||||
| if [ -n " amd64" ] | ||||
| then | ||||
| 	LB_LINUX_FLAVOURS_WITH_ARCH=" amd64" | ||||
| fi | ||||
|  | ||||
| # $LB_LINUX_FLAVOURS_WITH_ARCH: set kernel flavour to use (with arch) | ||||
| # (Default: autodetected) | ||||
| LB_LINUX_FLAVOURS_WITH_ARCH="amd64" | ||||
| LB_LINUX_FLAVOURS="amd64" | ||||
|  | ||||
| # $LB_LINUX_PACKAGES: set kernel packages to use | ||||
| # (Default: autodetected) | ||||
|   | ||||
| @@ -87,32 +87,26 @@ LB_TASKSEL="apt" | ||||
| # live-build options | ||||
|  | ||||
| # $_BREAKPOINTS: enable breakpoints | ||||
| # If set here, overrides the command line option | ||||
| # (Default: false) | ||||
| #_BREAKPOINTS="false" | ||||
|  | ||||
| # $_DEBUG: enable debug | ||||
| # If set here, overrides the command line option | ||||
| # (Default: false) | ||||
| #_DEBUG="false" | ||||
|  | ||||
| # $_COLOR: enable color | ||||
| # If set here, overrides the command line option | ||||
| # (Default: false) | ||||
| #_COLOR="false" | ||||
|  | ||||
| # $_FORCE: enable force | ||||
| # If set here, overrides the command line option | ||||
| # (Default: false) | ||||
| #_FORCE="false" | ||||
|  | ||||
| # $_QUIET: enable quiet | ||||
| # If set here, overrides the command line option | ||||
| # (Default: false) | ||||
| #_QUIET="false" | ||||
| _QUIET="false" | ||||
|  | ||||
| # $_VERBOSE: enable verbose | ||||
| # If set here, overrides the command line option | ||||
| # (Default: false) | ||||
| #_VERBOSE="false" | ||||
|  | ||||
|   | ||||
| @@ -26,3 +26,5 @@ net-tools | ||||
| qtpass | ||||
| davfs2 | ||||
| xtightvncviewer | ||||
| nextcloud-desktop | ||||
| nautilus-nextcloud | ||||
|   | ||||
							
								
								
									
										43
									
								
								stick_build
									
									
									
									
									
								
							
							
						
						
									
										43
									
								
								stick_build
									
									
									
									
									
								
							| @@ -1,43 +0,0 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| # stick_build /dev/sdX | ||||
|  | ||||
| set -e | ||||
|  | ||||
| ISO="live_svpro_gnu-amd64.hybrid.iso" | ||||
|  | ||||
| # Recuperation iso | ||||
| echo "Téléchargement de l'iso..." | ||||
| sleep 5 | ||||
| wget -O ${ISO} https://samuel.vermeulen.pro/telechargement/live_svpro_gnu-amd64.hybrid.iso | ||||
| wget -O ${ISO}.md5 https://samuel.vermeulen.pro/telechargement/live_svpro_gnu-amd64.hybrid.iso.md5 | ||||
| echo "Vérification de l'image..." | ||||
|  | ||||
| if ! md5sum -c ${ISO}.md5 | ||||
| 	then | ||||
| 	echo "ISO Corompue. Abandon !!" | ||||
| 	rm -f ${ISO} ${ISO}.md5 | ||||
| 	exit 1 | ||||
| fi | ||||
|  | ||||
| # Copie de l'image iso sur clé | ||||
| echo "Transfert en cours..." | ||||
| dd if=${ISO} of=$1 bs=4M status=progress | ||||
| sync | ||||
|  | ||||
| # Création de la partition dédiée à la persistence | ||||
| echo "Création de la persistence..." | ||||
| sleep 5 | ||||
| printf 'n\np\n\n\n\nw' | fdisk $1 | ||||
| mkfs.ext4 -L persistence ${1}3 | ||||
|  | ||||
| # Configuratio de la partition | ||||
| mount ${1}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