diff --git a/create_pxeinitrd.sh b/create_pxeinitrd.sh index bdd71ae..2010f31 100755 --- a/create_pxeinitrd.sh +++ b/create_pxeinitrd.sh @@ -12,7 +12,6 @@ KERNEL_DIR=$RESULT_DIR/kernel [[ -d $RESULT_DIR ]] || mkdir -p $RESULT_DIR [[ -d $KERNEL_DIR ]] || mkdir -p $KERNEL_DIR -HOSTNAME=localhost # Configs overwritable via environment variables RELEASE=${RELEASE:=unstable} FLAVOUR=${FLAVOUR:=debian} # Either 'debian' or 'ubuntu' @@ -49,7 +48,7 @@ fi echo "Installing Debian $RELEASE..." debootstrap --variant=minbase --include=$INCLUDES,$BOOT_PKG $RELEASE $MNT_DIR $MIRROR || fail "cannot install $RELEASE" -echo $HOSTNAME > $MNT_DIR/etc/hostname +echo localhost > $MNT_DIR/etc/hostname cat < $MNT_DIR/etc/hosts 127.0.0.1 localhost @@ -59,7 +58,7 @@ ff02::1 ip6-allnodes ff02::2 ip6-allrouters EOF -echo "ipv4: \4 ipv6: \6" >>/etc/issue +echo "ipv4: \4 ipv6: \6" >>$MNT_DIR/etc/issue rm -f $MNT_DIR/etc/apt/sources.list echo 'deb https://mirrors.wit.com/debian sid main contrib non-free' > $MNT_DIR/etc/apt/sources.list diff --git a/debian/compat b/debian-amd64/compat similarity index 100% rename from debian/compat rename to debian-amd64/compat diff --git a/debian/control b/debian-amd64/control similarity index 88% rename from debian/control rename to debian-amd64/control index b7394b6..fb8c42a 100644 --- a/debian/control +++ b/debian-amd64/control @@ -1,4 +1,4 @@ -Source: wit-pxeboot +Source: wit-pxeboot-amd64 Section: unknown Priority: optional Maintainer: wit @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 11) Standards-Version: 4.1.3 Homepage: http://www.wit.com -Package: wit-pxeboot +Package: wit-pxeboot-amd64 Architecture: all Depends: ${misc:Depends}, tftpd-hpa, pxelinux, syslinux-common Description: kernel and initrd to pxeboot debcore diff --git a/debian/rules b/debian-amd64/rules similarity index 100% rename from debian/rules rename to debian-amd64/rules diff --git a/debian/wit-pxeboot.install b/debian-amd64/wit-pxeboot-amd64.install similarity index 60% rename from debian/wit-pxeboot.install rename to debian-amd64/wit-pxeboot-amd64.install index fefa07c..35dfa12 100644 --- a/debian/wit-pxeboot.install +++ b/debian-amd64/wit-pxeboot-amd64.install @@ -1,3 +1,3 @@ -files/wit-pxeboot/* /srv/tftp/wit-pxeboot/ +files/kernel/* /srv/tftp/wit-pxeboot/ files/boot/* /srv/tftp/boot/ files/grub.cfg /srv/tftp/boot/grub/ diff --git a/debian-arm64/compat b/debian-arm64/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/debian-arm64/compat @@ -0,0 +1 @@ +11 diff --git a/debian-arm64/control b/debian-arm64/control new file mode 100644 index 0000000..ea81dda --- /dev/null +++ b/debian-arm64/control @@ -0,0 +1,15 @@ +Source: wit-pxeboot-arm64 +Section: unknown +Priority: optional +Maintainer: wit +Build-Depends: debhelper (>= 11) +Standards-Version: 4.1.3 +Homepage: http://www.wit.com + +Package: wit-pxeboot-arm64 +Architecture: all +Depends: ${misc:Depends}, tftpd-hpa, pxelinux, syslinux-common +Description: kernel and initrd to pxeboot debcore + kernel and initrd to boot a pxe image easily + it also includes a rootfs to quickly kickstart + a local install diff --git a/debian-arm64/rules b/debian-arm64/rules new file mode 100755 index 0000000..e1c367c --- /dev/null +++ b/debian-arm64/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +%: + dh $@ + + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) + diff --git a/debian-arm64/wit-pxeboot-arm64.install b/debian-arm64/wit-pxeboot-arm64.install new file mode 100644 index 0000000..35dfa12 --- /dev/null +++ b/debian-arm64/wit-pxeboot-arm64.install @@ -0,0 +1,3 @@ +files/kernel/* /srv/tftp/wit-pxeboot/ +files/boot/* /srv/tftp/boot/ +files/grub.cfg /srv/tftp/boot/grub/ diff --git a/drone-not-working.sh b/drone-not-working.sh index 8ac1c36..abfa5ed 100755 --- a/drone-not-working.sh +++ b/drone-not-working.sh @@ -2,7 +2,7 @@ set -Eeuxo pipefail export TMP_DIR=$(mktemp -d) -cp -r debian $TMP_DIR +cp -r debian-$ARCH $TMP_DIR/debian cp -r files $TMP_DIR echo -e "wit-pxeboot (1.0.$(date +%Y.%m.%d.%H.%M)) unstable; urgency=low\n\n$(git log --format=" * %s")\n\n -- wit $(date -R)" >$TMP_DIR/debian/changelog sudo TMP_DIR=$TMP_DIR ./create_pxeinitrd.sh