SUITE="daedalus"
SECTION="main"
ARCH="amd64"
-MBR=gpt # or dos
+MBR=dos # or dos
PKGFILE=${REPO//\//_}_${SUITE}_${SECTION}_binary-${ARCH}_Packages
if [ ! -r $PKGFILE ] ; then
t10-pi sd_mod sg
nls_cp437 nls_ascii fat vfat
crc32c_generic jbd2 mbcache crc16 ext4
+ usb-storage usbcore usb-common xhci-pci xhci-hcd
isofs
- overlay
# input
psmouse evdev
# network
echo "# setup a scripted init. The kernel runs this via the #! interpreter"
rm -f initrd/sbin/init # just in case
-cat <<EOF > initrd/init
-#!/bin/sh
-echo
-echo
-echo "Hi there, tiniest lover!"
-
-mkdir /proc
-mount -t proc proc /proc
-mount -t devtmpfs devtmpfs /dev
-mkdir /dev/pts
-mount -t devpts devpts /dev/pts
-mkdir /sys
-mount -t sysfs sysfs /sys
-$(for m in ${MODULES[@]} ; do echo modprobe $m ; done)
-exec /bin/sh
-EOF
+cp init/init initrd/init
chmod a+x initrd/init
echo "# Now pack up that initrd as initrd.gz"
kernel/usr/lib/syslinux/modules/bios/* ::/boot/syslinux/bios
mcopy $IMG syslinux-legacy.cfg ::/syslinux.cfg
+syslinux --install --offset=${IMG#*@@} bootimage.raw
+
echo "# Set up UEFI boot"
cat <<EOF > syslinux-uefi.cfg
path /EFI/BOOT/efi64
mmd $IMG ::/EFI
mmd $IMG ::/EFI/BOOT
-mmd $IMG ::/EFI/BOOT/efi64
mcopy $IMG kernel/usr/lib/SYSLINUX.EFI/efi64/syslinux.efi \
::/EFI/BOOT/bootx64.efi
mcopy $IMG \
kernel/usr/lib/syslinux/modules/efi64/* ::/EFI/BOOT
-mcopy $IMG syslinux-uefi.cfg ::/EFI/BOOT/syslx64.cfg
+mcopy $IMG syslinux-uefi.cfg ::/EFI/BOOT/syslinux.cfg
-
-syslinux --install --offset=${IMG#*@@} bootimage.raw
+#echo "# Set up isolinux boot"
+#mcopy $IMG kernel/usr/lib/ISOLINUX/isolinux.bin ::/
case "$MBR" in
dos) MBRBIN=mbr.bin ;;