From 02ae9feb6274abe7ad171451c6317737a02072b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Karpi=C5=84ski?= Date: Tue, 4 Feb 2020 14:25:35 +0100 Subject: [PATCH] Fixed autologin --- linux/Makefile | 17 +++++++++-------- linux/src/{lib => etc}/systemd/logind.conf | 0 2 files changed, 9 insertions(+), 8 deletions(-) rename linux/src/{lib => etc}/systemd/logind.conf (100%) diff --git a/linux/Makefile b/linux/Makefile index 524e9fb..a2fc679 100644 --- a/linux/Makefile +++ b/linux/Makefile @@ -2,24 +2,25 @@ CHROOT_CMD := chroot build/rootfs /bin/bash -c FILES = $(shell find src/ -type f -print | sed -e 's|^src/|build/rootfs/|') -all: $(FILES) build/rootfs/initrd.img +all: build/rootfs $(FILES) build/rootfs/initrd.img clean: - rm -r build/rootfs + rm -rf build/rootfs -build/rootfs/initrd.img: $(FILES) | build/rootfs +build/rootfs/initrd.img: $(FILES) chmod +x build/rootfs/etc/initramfs-tools/scripts/local-top/download.sh $(CHROOT_CMD) "apt update && apt install -y linux-image-4.19.0-6-amd64" $(CHROOT_CMD) "update-initramfs -c -kall" -build/rootfs/%: src/% | build/rootfs - mkdir -p $(@D) - cp $< $@ +build/rootfs/%: + mkdir -p $(@D) + cp $(shell echo $@ | sed -e 's|^build/rootfs/|src/|') $@ build/rootfs: build/cache - rm -r build/rootfs || true + rm -rf build/rootfs cp -r build/cache build/rootfs + rm -rf $(FILES) build/cache: - rm -r build/cache || true + rm -rf build/cache || true debootstrap buster build/cache diff --git a/linux/src/lib/systemd/logind.conf b/linux/src/etc/systemd/logind.conf similarity index 100% rename from linux/src/lib/systemd/logind.conf rename to linux/src/etc/systemd/logind.conf