From fe68126856b007c20b1d2a09bf95b59581a02b40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sun, 14 Dec 2025 15:31:03 +0100 Subject: [PATCH] use /etc/skel for live user home, plant setxkbmap in bash history --- live-dvd.mk | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/live-dvd.mk b/live-dvd.mk index db5a527..7c9891e 100644 --- a/live-dvd.mk +++ b/live-dvd.mk @@ -86,13 +86,18 @@ _favorites: _xfce # Place some helpers in bash history ;-) _config: cfg_root/home/live/.bash_history -cfg_root/home/live/.bash_history: cfg_root _users - mkdir "$${CFGROOT}/home/live" +cfg_root/home/live/.bash_history: cfg_root _users cfg_root/home/live/ printf '%s\n' \ 'sudo git clone https://git.plutz.net/git/blast /mnt/blast' \ 'for m in /proc /sys /dev /run; do sudo mount -o rbind $$m /mnt/$$m; done' \ - >$@ - chroot "$${CFGROOT}" chown live:live -R /home/live + 'setxkbmap us mac' \ + >>$@ + chroot "$${CFGROOT}" chown live:live "/home/live/.bash_history" + +cfg_root/home/live/: cfg_root/etc/skel/. cfg_root _users + cp -a -- "$<" "$@" + chroot "$${CFGROOT}" chmod 750 "/home/live/" + chroot "$${CFGROOT}" chown live:live -R "/home/live/" _config: cfg_root/usr/local/share/applications/org.xfce.mousepad.desktop cfg_root/usr/local/share/applications/xfce4-terminal.desktop cfg_root/usr/local/share/applications/%.desktop: cfg_root/usr/share/applications/%.desktop -- 2.39.5