From 7a34055ef3f56fffe3a3338ed6aca60ced3c66c8 Mon Sep 17 00:00:00 2001 From: Takumi Sueda Date: Mon, 11 Jul 2022 19:18:20 +0900 Subject: [PATCH] Name the new volumes --- image/build_image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image/build_image.sh b/image/build_image.sh index 5fd556c..832b137 100755 --- a/image/build_image.sh +++ b/image/build_image.sh @@ -51,8 +51,8 @@ sudo kpartx -av ${IMG} LOOPDEV=$(losetup -l | grep sd.img | grep -o 'loop.' | tail -n 1) -sudo mkfs.fat -F32 -v -I /dev/mapper/${LOOPDEV}p1 -sudo mkfs.ext4 /dev/mapper/${LOOPDEV}p2 +sudo mkfs.fat -n boot -F32 -v -I /dev/mapper/${LOOPDEV}p1 +sudo mkfs.ext4 -L rootfs /dev/mapper/${LOOPDEV}p2 mkdir -p ${WORK}/p1 ${WORK}/p2 sudo mount -o utf8=true /dev/mapper/${LOOPDEV}p1 ${WORK}/p1