Add to call 'partprobe' after 'fdisk' works

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I86322a3113aa9069587e23788b0d4cb3acfa58e2
This commit is contained in:
Dongjin Kim
2021-03-13 06:23:16 +09:00
parent f21812106f
commit 0c9fbc3992

View File

@@ -17,6 +17,7 @@ lba_finish=$((`fdisk -l ${dev} | grep Disk | grep sectors | awk '{printf $7}'` -
echo -e "p\nd\n2\nn\np\n2\n${lba_start}\n${lba_finish}\np\nw\n" | \
fdisk ${dev} >/dev/null
partprobe
resize2fs ${rootdev}
rm -f /etc/ssh/ssh_host* && ssh-keygen -A