From ed1e52563f986d0d3f4af8429bc4aeb2a73eaf2e Mon Sep 17 00:00:00 2001 From: jalr Date: Sun, 11 Feb 2018 18:41:26 +0100 Subject: [PATCH] fix binary path --- imagesync.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/imagesync.sh b/imagesync.sh index e645de9..d779c63 100755 --- a/imagesync.sh +++ b/imagesync.sh @@ -6,8 +6,8 @@ prereqs() echo "$PREREQ" . /usr/share/initramfs-tools/hook-functions copy_exec /usr/bin/lftp - copy_exec /usr/sbin/sfdisk - copy_exec /usr/sbin/mke2fs + copy_exec /sbin/sfdisk + copy_exec /sbin/mke2fs } case $1 in # get pre-requisites @@ -33,8 +33,10 @@ unit: sectors /dev/sda1 : start= 2048, size= $size_part_1, type=83 PARTTABLE -mke2fs -t ext4 ${disk}1 -mount ${disk}1 /root +mke2fs -F -t ext4 ${disk}1 + +mkdir -p /tmp_root +mount ${disk}1 /tmp_root /usr/bin/lftp --help ls /usr/bin