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