On Thu, Oct 22, 2020 at 06:40:08PM +0800, Hu Xuejiao wrote:
When job.yaml contains "fs: **", and /srv/initrd/deps/**/**/fs.cgz(btrfs-progs), it will execute mkfs.btrfs -f $rootfs_partition. but job.yaml don't container "fs: **" to appear warning:
mkfs.btrfs command not found
Signed-off-by: Hu XueJiao huxuejiao1@huawei.com
lib/bootstrap.sh | 1 + 1 file changed, 1 insertion(+)
diff --git a/lib/bootstrap.sh b/lib/bootstrap.sh index a7776d68..16789c5c 100755 --- a/lib/bootstrap.sh +++ b/lib/bootstrap.sh @@ -456,6 +456,7 @@ mount_rootfs() ROOTFS_DIR=/opt/rootfs mkdir -p $ROOTFS_DIR mount $rootfs_partition $ROOTFS_DIR || {
command -v mkfs.btrfs >/dev/null || return
this way our rootfs_partition(disk) not working, so, i think you can judge which command can be used, mkfs.ext4, mkfs.xfs, xxx
Thanks, Shenwei
mkfs.btrfs -f $rootfs_partition mount $rootfs_partition $ROOTFS_DIR }
-- 2.23.0