From 475950120a0274de7201c1cf2e8d8398d24e9b33 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 24 Dec 2016 15:39:06 +0100 Subject: Fix ncurses mess (Segfaults partclone.restore) --- make-boot-image.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/make-boot-image.sh b/make-boot-image.sh index 5aa0cc6..d38426d 100755 --- a/make-boot-image.sh +++ b/make-boot-image.sh @@ -261,7 +261,7 @@ then ( mkchroot "$WORKDIR/initrd" /usr/sbin/partclone* efibootmgr gdisk udp-receiver # Some dyn-loaded libraries (ldd will not display them) mkchroot "$WORKDIR/initrd" /lib/x86_64-linux-gnu/libusb-1.0.so.0 - cp -r /lib/terminfo "$WORKDIR/initrd/lib/" + cp -ar /lib/terminfo "$WORKDIR/initrd/lib/" ) fi @@ -401,6 +401,7 @@ set -v mount -t proc none /proc || rescue_shell mount -t sysfs none /sys || rescue_shell mount -t devtmpfs -o size=1m none /dev || rescue_shell +ln -s /proc/self/fd/2 /dev/stderr # Allow using most of the RAM for rootfs mount -o remount -o size=80% / -- cgit v1.2.3