Commit 061075f5 authored by Strit's avatar Strit

remove old rootfs, if it's present, before creating a new, also for img creation now

parent ece149be
......@@ -196,6 +196,12 @@ create_rootfs_img() {
# cd to root_fs
mkdir -p $ROOTFS_IMG
# Remove old rootfs if it exists
if [ -d $ROOTFS_IMG/rootfs_$ARCH ]; then
echo "Removing old rootfs..."
sudo rm -rf $ROOTFS_IMG/rootfs_$ARCH
# create folder for the rootfs
mkdir -p rootfs_$ARCH
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment