uwu

hardware bitcoin wallet software and build system
git clone https://git.parazyd.org/uwu
Log | Files | Refs | README | LICENSE

commit 761fed109dbbebd8a5693c8e6684ebe701da4576
parent 228d4ed0616569cb5e87ff89d5a3c8a8fb1a2bfa
Author: parazyd <parazyd@dyne.org>
Date:   Tue,  2 Feb 2021 23:59:22 +0100

Create .electrum for user.

Diffstat:
MMakefile | 2+-
Mchroot.mk | 4+++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -45,7 +45,7 @@ initramfs/bin/busybox: $(BUSYBOX_SRC)/busybox cp $(BUSYBOX_SRC)/busybox $@ rpi-boot/filesystem.squashfs: chroot/usr/bin/electrum - mksquashfs chroot $@ -comp xz -noappend + mksquashfs chroot $@ -comp xz -Xbcj arm -noappend rpi-boot/upstream/initramfs.cpio: initramfs/bin/busybox initramfs/init ( cd initramfs && find -print0 | cpio --null -oV --format=newc > ../$@ ) diff --git a/chroot.mk b/chroot.mk @@ -10,7 +10,7 @@ chroot/bin/busybox: $(ALPINE_TAR) $(ALPINE_SIG) gpg --no-default-keyring --keyring=./verification_keyring.gpg \ --verify $(ALPINE_SIG) mkdir -p chroot - ( cd chroot && tar xf ../$(ALPINE_TAR) ) + ( cd chroot && tar xpf ../$(ALPINE_TAR) --xattrs ) chroot/usr/bin/electrum: chroot/bin/busybox qemu-wrapper ./devprocsys.sh mount chroot @@ -20,4 +20,6 @@ chroot/usr/bin/electrum: chroot/bin/busybox qemu-wrapper chmod 755 chroot/install.sh chroot/qemu-wrapper chroot chroot /install.sh || ( ./devprocsys.sh umount chroot ; exit 1 ) ./devprocsys.sh umount chroot + mkdir -p chroot/home/uwu/.electrum + chown 1000:1000 chroot/home/uwu/.electrum rm -f chroot/usr/bin/$(QEMU_ARM) chroot/qemu-wrapper chroot/install.sh