ARCH := amd64
CONFIG := config_base/
-PACKAGES := apt bilibop-lockfs btrfs-tools busybox-static bzip2 ca-certificates cron deborphan extlinux gzip htop ifupdown init iputils-ping irqbalance isc-dhcp-client less live-boot live-boot-initramfs-tools make man-db nbd-client net-tools nmap ntpdate openssh-client openssh-server p7zip-full pciutils rsync squashfs-tools sshfs sudo syslinux-common systemd unace unrar-free unzip vim wget wireless-tools wpasupplicant xz-utils zip
+PACKAGES := apt bilibop-lockfs btrfs-tools busybox-static bzip2 ca-certificates cron deborphan gzip htop ifupdown init iputils-ping irqbalance isc-dhcp-client less live-boot live-boot-initramfs-tools make man-db nbd-client net-tools nmap ntpdate openssh-client openssh-server p7zip-full pciutils rsync squashfs-tools sshfs sudo syslinux syslinux-common syslinux-efi systemd unace unrar-free unzip vim wget wireless-tools wpasupplicant xz-utils zip
include *.mk
+.PRECIOUS: stretch_%_root/bin/sh
+
stretch_%_root/bin/sh:
btrfs subvolume create "$(subst bin/sh,,$@)" || mkdir "$(subst bin/sh,,$@)"
chmod 755 "$(subst bin/sh,,$@)"
for tree in ${CONFIG}; do for file in apt default timezone; do cp -av "$$tree/etc/$$file" "$@/etc/" || true; done; done
chroot "$@" ln -sf /bin/true /usr/local/sbin/invoke-rc.d
chroot "$@" sh -c 'apt-mark showmanual |xargs apt-mark auto || true'
- chroot "$@" apt-get update
+ -chroot "$@" apt-get update
chroot "$@" umount /proc /dev || true
chroot "$@" mount -t devtmpfs udev /dev
chroot "$@" mount -t proc proc /proc
btrfs subvolume delete "$@" || rm -r "$@" || true
btrfs subvolume snapshot "$<" "$@" || cp -rlv "$<" "$@"
cp -av $(addsuffix /*, ${CONFIG}) "$@"
- chroot "$@" locale-gen
- chroot "$@" update-locale
+ -chroot "$@" locale-gen
+ -chroot "$@" update-locale
chroot "$@" useradd -M -p "$$(printf %s\\n '${PASS}' |mkpasswd -m sha-256 -s)" '${USER}'
for g in ${GROUPS}; do chroot "$@" adduser '${USER}' "$$g"; done
touch "$@"
/dev/sd%: partitions .FORCE
sfdisk ${@} <partitions
- dd of=${@} if=/usr/lib/syslinux/mbr/mbr.bin
+ dd of=${@} if=/usr/lib/syslinux/mbr/gptmbr.bin
/dev/sd%1: /dev/sd% vmlinuz initrd.img syslinux.cfg .FORCE
mkdir -p mount
- mkfs.ext3 -FL SQUASHBOOT ${@}
- mount -t ext3 ${@} mount
+ mkfs.vfat -n SQUASHBOOT ${@}
+ syslinux -i ${@}
+ mount -t vfat ${@} mount
cp -L vmlinuz initrd.img *.squashfs syslinux.cfg Makefile partitions mount/
cp $(addprefix /usr/lib/syslinux/modules/bios/, menu.c32 libutil.c32) mount/
- extlinux -i mount/
umount mount/
sync
# PACKAGES := ${PACKAGES} linux-image-686
## Overall XFCE Desktop
-PACKAGES := ${PACKAGES} alsa-utils ark blueman breeze-icon-theme chromium cryptsetup cups-client dosfstools dvd+rw-tools dvdauthor eject exfat-fuse exfat-utils file firmware-linux-free gnome-keyring gparted gtk3-engines-breeze gvfs-backends gvfs-fuse gwenview k3b k3b-i18n kbd kde-l10n-de kde-spectacle kde-style-breeze kde-style-breeze-qt4 leafpad libgl1-mesa-dri locales lvm2 mdadm mesa-utils ntfs-3g okular pavucontrol plymouth plymouth-themes policykit-1 policykit-1-gnome pulseaudio pulseaudio-module-bluetooth recordmydesktop thunar-volman va-driver-all vdpau-driver-all vlc x11-xserver-utils x264 xauth xdotool xfce4 xfce4-terminal xfce4-whiskermenu-plugin xscreensaver xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-wacom xserver-xorg-video-all zenity
+#PACKAGES := ${PACKAGES} alsa-utils ark blueman breeze-icon-theme chromium cryptsetup cups-client dosfstools dvd+rw-tools dvdauthor eject exfat-fuse exfat-utils file firmware-linux-free gnome-keyring gparted gtk3-engines-breeze gvfs-backends gvfs-fuse gwenview k3b k3b-i18n kbd kde-l10n-de kde-spectacle kde-style-breeze kde-style-breeze-qt4 leafpad libgl1-mesa-dri locales lvm2 mdadm mesa-utils ntfs-3g okular pavucontrol plymouth plymouth-themes policykit-1 policykit-1-gnome pulseaudio pulseaudio-module-bluetooth recordmydesktop thunar-volman va-driver-all vdpau-driver-all vlc x11-xserver-utils x264 xauth xdotool xfce4 xfce4-terminal xfce4-whiskermenu-plugin xscreensaver xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-wacom xserver-xorg-video-all zenity
## Common heavy weight desktop applications
-PACKAGES := ${PACKAGES} audacity blender clementine firefox-esr firefox-esr-l10n-de frei0r-plugins gimp hunspell hunspell-de-de hyphen-de inkscape kdenlive krita krita-l10n libreoffice libreoffice-gnome libreoffice-gtk libreoffice-l10n-de libreoffice-pdfimport libreoffice-style-breeze lightning marble thunderbird thunderbird-l10n-de
+#PACKAGES := ${PACKAGES} audacity blender clementine firefox-esr firefox-esr-l10n-de frei0r-plugins gimp hunspell hunspell-de-de hyphen-de inkscape kdenlive krita krita-l10n libreoffice libreoffice-gnome libreoffice-gtk libreoffice-l10n-de libreoffice-pdfimport libreoffice-style-breeze lightning marble thunderbird thunderbird-l10n-de
## Public Terminal / Personal Login
-PACKAGES := ${PACKAGES} nodm
+#PACKAGES := ${PACKAGES} nodm
# PACKAGES := ${PACKAGES} lxdm network-manager network-manager-gnome