summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2016-12-24 15:39:06 +0100
committerLudovic Pouzenc <ludovic@pouzenc.fr>2016-12-24 15:39:06 +0100
commit475950120a0274de7201c1cf2e8d8398d24e9b33 (patch)
treeb770cb258f3a64b27af4791fb7e674d29ee30ac8
parent2721d59147eaf50943ac79834719ad6fe435711c (diff)
downloadeficast-475950120a0274de7201c1cf2e8d8398d24e9b33.tar.gz
eficast-475950120a0274de7201c1cf2e8d8398d24e9b33.tar.bz2
eficast-475950120a0274de7201c1cf2e8d8398d24e9b33.zip
Fix ncurses mess (Segfaults partclone.restore)
-rwxr-xr-xmake-boot-image.sh3
1 files changed, 2 insertions, 1 deletions
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% /