Skip to content
Snippets Groups Projects
Commit a57bbb3b authored by dimitri.lizzi's avatar dimitri.lizzi
Browse files

deploy with debian (WIP)

parent 0132008a
No related branches found
No related tags found
No related merge requests found
SHELL := /bin/bash
MAKEFLAGS += "-j 4" MAKEFLAGS += "-j 4"
DOCKER_BUILDKIT_BUILD = DOCKER_BUILDKIT=1 docker build --progress=plain DOCKER_BUILDKIT_BUILD = DOCKER_BUILDKIT=1 docker build --progress=plain
......
...@@ -47,12 +47,12 @@ Vagrant.configure("2") do |config| ...@@ -47,12 +47,12 @@ Vagrant.configure("2") do |config|
mv /vagrant/tftp/tftpboot /tftpboot mv /vagrant/tftp/tftpboot /tftpboot
systemctl restart tftpd-hpa systemctl restart tftpd-hpa
# Install and configure DHCP server # Install and configure NFS server
apt-get install -y nfs-kernel-server apt-get install -y nfs-kernel-server
cp /vagrant/nfs/exports /etc/exports cp /vagrant/nfs/exports /etc/exports
rm -rf /nfsroot rm -rf /nfsroot
mkdir /nfsroot mkdir /nfsroot
tar -xJvf /vagrant/nfs/nfsroot.tar.xz -C /nfsroot --strip-components=1 tar -xJf /vagrant/nfs/nfsroot.tar.xz -C /nfsroot --strip-components=1
systemctl restart nfs-server systemctl restart nfs-server
SHELL SHELL
......
...@@ -10,7 +10,7 @@ ADD ./hostname ./rootfs/etc/hostname ...@@ -10,7 +10,7 @@ ADD ./hostname ./rootfs/etc/hostname
ADD ./hosts ./rootfs/etc/hosts ADD ./hosts ./rootfs/etc/hosts
ADD ./fstab ./rootfs/etc/fstab ADD ./fstab ./rootfs/etc/fstab
ADD ./initramfs.conf ./rootfs/etc/initramfs-tools/initramfs.conf ADD ./initramfs.conf ./rootfs/etc/initramfs-tools/initramfs.conf
ADD ./init ./rootfs/sbin/init #ADD ./init ./rootfs/sbin/init
ADD ./bootiful-deploy ./rootfs/usr/bin ADD ./bootiful-deploy ./rootfs/usr/bin
ADD ./bootiful-deploy-log ./rootfs/usr/bin ADD ./bootiful-deploy-log ./rootfs/usr/bin
......
...@@ -2,10 +2,12 @@ ...@@ -2,10 +2,12 @@
unpack=true unpack=true
bootstrap=Debian bootstrap=Debian
aptsources=Debian aptsources=Debian
addimportant=true
[Debian] [Debian]
packages=nfs-common clonezilla linux-image-amd64 packages=nfs-common clonezilla linux-image-amd64 parted systemd udev
source=http://http.debian.net/debian source=http://http.debian.net/debian
keyring=debian-archive-keyring keyring=debian-archive-keyring
suite=buster suite=buster
components=main contrib non-free
...@@ -16,9 +16,6 @@ subnet 192.168.56.0 netmask 255.255.255.0 { ...@@ -16,9 +16,6 @@ subnet 192.168.56.0 netmask 255.255.255.0 {
if substring (option vendor-class-identifier, 15, 5) = "00000" { if substring (option vendor-class-identifier, 15, 5) = "00000" {
option bootfile-name "/boot/grub/i386-pc/core.0"; option bootfile-name "/boot/grub/i386-pc/core.0";
} }
elsif substring (option vendor-class-identifier, 15, 5) = "00002" {
option bootfile-name "/boot/grub/i386-efi/core.efi";
}
elsif substring (option vendor-class-identifier, 15, 5) = "00006" { elsif substring (option vendor-class-identifier, 15, 5) = "00006" {
option bootfile-name "/boot/grub/i386-efi/core.efi"; option bootfile-name "/boot/grub/i386-efi/core.efi";
} }
......
#!/usr/bin/env python #!/usr/bin/env python3
import sys import sys
......
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment