mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-22 13:15:44 -05:00
chroot/base: Create chroot indicator file for use with boot-deploy
This commit is contained in:
parent
a28550825f
commit
5c4b1cb052
1 changed files with 13 additions and 0 deletions
|
@ -48,6 +48,19 @@ class BaseChroot(Chroot):
|
|||
)
|
||||
if result.returncode != 0:
|
||||
raise Exception(f'Failed to initialize chroot "{self.name}"')
|
||||
|
||||
# This indicator is used to prevent boot-deploy from flashing aboot.img after creation
|
||||
logging.info('Creating chroot indicator file')
|
||||
|
||||
result = run_root_cmd(
|
||||
[
|
||||
'touch',
|
||||
f'{self.path}/in-kupferbootstrap',
|
||||
],
|
||||
stderr=sys.stdout,
|
||||
)
|
||||
if result.returncode != 0:
|
||||
raise Exception('Failed to create chroot indicator file')
|
||||
self.initialized = True
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue