Compare commits
	
		
			2 Commits
		
	
	
		
			deb232aa0f
			...
			6079a53c8a
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 6079a53c8a | |||
| 31b163bda1 | 
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -16,3 +16,5 @@ assets/win-pe/configs/*.xml
 | 
			
		||||
!/config/menus/
 | 
			
		||||
!/config/menus/windows.ipxe
 | 
			
		||||
!/config/menus/menu.ipxe
 | 
			
		||||
 | 
			
		||||
!/config/menus/vdi.ipxe
 | 
			
		||||
 | 
			
		||||
@ -3,6 +3,6 @@ FROM ghcr.io/netbootxyz/netbootxyz
 | 
			
		||||
COPY smb.conf /etc/samba/smb.conf
 | 
			
		||||
COPY samba.ini /etc/supervisor.d/samba.ini
 | 
			
		||||
RUN apk add samba \
 | 
			
		||||
  && adduser isos --disabled-password \
 | 
			
		||||
  && adduser -u 1010 -g 1010 isos --disabled-password \
 | 
			
		||||
  && echo -e "isos\nisos" | smbpasswd -a -s -c /etc/samba/smb.conf isos
 | 
			
		||||
RUN cat /etc/supervisor.d/samba.ini >> /etc/supervisor.conf
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										33
									
								
								config/menus/vdi.ipxe
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								config/menus/vdi.ipxe
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,33 @@
 | 
			
		||||
#!ipxe
 | 
			
		||||
 | 
			
		||||
# VDI
 | 
			
		||||
# Mostly copied from alpinelinux.ipxe
 | 
			
		||||
# Requires thinclient.apkovl.tar.gz to be setup and placed in /assets
 | 
			
		||||
# https://www.apalrd.net/posts/2022/alpine_vdiclient/
 | 
			
		||||
 | 
			
		||||
set alpine_version v3.22
 | 
			
		||||
set os_arch ${arch}
 | 
			
		||||
set cmdline modules=loop,squashfs quiet
 | 
			
		||||
 | 
			
		||||
isset ${dhcp-server} && set ipparam ip=dhcp || set ipparam ip=${ip}::${gateway}:${netmask}::::${dns}
 | 
			
		||||
 | 
			
		||||
set server http://${next-server}
 | 
			
		||||
set apkovl ${server}/thinclient.apkovl.tar.gz
 | 
			
		||||
 | 
			
		||||
set base-url ${alpinelinux_mirror}
 | 
			
		||||
set dir ${alpinelinux_base_dir}/${alpine_version}/releases/${os_arch}/netboot
 | 
			
		||||
 | 
			
		||||
set vmlinuz ${base-url}/${dir}/vmlinuz-lts
 | 
			
		||||
 | 
			
		||||
set initramfs ${base-url}/${dir}/initramfs-lts
 | 
			
		||||
set modloop ${base-url}/${dir}/modloop-lts
 | 
			
		||||
 | 
			
		||||
set repo ${alpinelinux_mirror}/${alpinelinux_base_dir}/${alpine_version}/main
 | 
			
		||||
 | 
			
		||||
imgfree
 | 
			
		||||
kernel ${vmlinuz} ${ipparam} ${cmdline} alpine_repo=${repo} modloop=${modloop} apkovl=${apkovl} initrd=initrd.magic
 | 
			
		||||
initrd ${initramfs}
 | 
			
		||||
echo
 | 
			
		||||
echo MD5sums:
 | 
			
		||||
md5sum vmlinuz-lts initramfs-lts
 | 
			
		||||
boot
 | 
			
		||||
@ -5,6 +5,7 @@
 | 
			
		||||
 | 
			
		||||
set win_arch x64
 | 
			
		||||
set win_size small
 | 
			
		||||
set win_base_url http://${next-server}/win-pe
 | 
			
		||||
goto ${menu} ||
 | 
			
		||||
 | 
			
		||||
:windows
 | 
			
		||||
@ -15,7 +16,7 @@ item --gap Installers
 | 
			
		||||
item win_install ${space} Load ${os} Installer...
 | 
			
		||||
item --gap Options:
 | 
			
		||||
item arch_set ${space} Architecture [ ${win_arch} ]
 | 
			
		||||
imtem size_set ${space} Preinstalled software package [ ${win_size} ]
 | 
			
		||||
item size_set ${space} Preinstalled software package [ ${win_size} ]
 | 
			
		||||
item url_set ${space} Base URL [ ${win_base_url} ]
 | 
			
		||||
choose win_version || goto windows_exit
 | 
			
		||||
goto ${win_version}
 | 
			
		||||
@ -26,6 +27,7 @@ goto windows
 | 
			
		||||
 | 
			
		||||
:size_set
 | 
			
		||||
iseq ${win_size} small && set win_size large || set win_size small
 | 
			
		||||
goto windows
 | 
			
		||||
 | 
			
		||||
:url_set
 | 
			
		||||
echo Set the HTTP URL of an extracted Windows ISO without the trailing slash:
 | 
			
		||||
 | 
			
		||||
@ -7,7 +7,7 @@ networks:
 | 
			
		||||
services:
 | 
			
		||||
  netboot:
 | 
			
		||||
    build:
 | 
			
		||||
      context: ./build-netbootxyz
 | 
			
		||||
      context: ./build
 | 
			
		||||
    # image: ghcr.io/netbootxyz/netbootxyz
 | 
			
		||||
    restart: unless-stopped
 | 
			
		||||
    volumes:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user