From 56d4f5605724931e7ce5c58f5783b3cf6d98feff Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 16 Feb 2022 19:04:00 +0200 Subject: refactor: mount root earlier Sponsored-by: author --- v-i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'v-i') diff --git a/v-i b/v-i index c8beaaf..f166e8b 100755 --- a/v-i +++ b/v-i @@ -299,6 +299,8 @@ def vmdb_spec(system, ansible_vars): # ext4 seems like a safe choice. If you wanted another file # system, sorry. mkfs("root", "ext4"), + # Mount the root file system. + mount("root"), ] ) @@ -314,8 +316,6 @@ def vmdb_spec(system, ansible_vars): steps.extend( [ - # Mount the root file system. - mount("root"), # If we have a cached version of the installed system, unpack # it now. Otherwise do nothing. Note that if you make any # changes to the steps marked "unless: rootfs_unpacked", you -- cgit v1.2.1 From 3c70d31061bd44f148720b6d94e20ac0abbc6e74 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 16 Feb 2022 19:36:51 +0200 Subject: fix --- v-i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'v-i') diff --git a/v-i b/v-i index f166e8b..0e38cc6 100755 --- a/v-i +++ b/v-i @@ -323,6 +323,7 @@ def vmdb_spec(system, ansible_vars): # vmdb2 won't do that automatically for you. unpack_rootfs("root"), debootstrap("root"), + virtual_filesystems("root"), apt( "root", [ @@ -341,7 +342,6 @@ def vmdb_spec(system, ansible_vars): # If we didn't unpack an existing cache archive, make one now. # Otherwise, skip this step. cache_rootfs("root"), - virtual_filesystems("root"), # Mount /boot on top of the root file system. This MUST be done after the # debootstrap step: otherwise the root file system isn't empty, and then # debootstrap fails. -- cgit v1.2.1