-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install zfsutils-linux if needed #1773
Changes from 3 commits
ff990df
aa27b33
96c0c91
6710226
18710ae
ad881dc
0bbec68
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -413,7 +413,7 @@ async def run_curtin_step(name, stages, step_config, source=None): | |
# really write recovery_system={snapd_system_label} to | ||
# {target}/var/lib/snapd/modeenv to get snapd to pick it up on | ||
# first boot. But not needed for now. | ||
rp = fs_controller.reset_partition | ||
rp = fs_controller.model.reset_partition | ||
if rp is not None: | ||
mounter = Mounter(self.app) | ||
rp_target = os.path.join(self.app.root, "factory-reset") | ||
|
@@ -597,6 +597,11 @@ async def create_core_boot_classic_fstab(self, *, context): | |
with open(self.tpath("etc/fstab"), "w") as fp: | ||
fp.write("/run/mnt/ubuntu-boot/EFI/ubuntu /boot/grub none bind\n") | ||
|
||
@with_context(description="installing packages to live system") | ||
async def install_live_packages(self, *, context): | ||
for package in await self.model.live_packages(): | ||
await self.app.package_installer.install_pkg(package) | ||
|
||
@with_context() | ||
async def install(self, *, context): | ||
context.set("is-install-context", True) | ||
|
@@ -627,8 +632,7 @@ async def install(self, *, context): | |
fsc = self.app.controllers.Filesystem | ||
for_install_path = self.model.source.get_source(fsc._info.name) | ||
|
||
if self.app.controllers.Filesystem.reset_partition: | ||
self.app.package_installer.start_installing_pkg("efibootmgr") | ||
await self.install_live_packages() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's probably not really important, but I was letting the install in the live environment run in parallel with the other bits here, whereas this will wait for the installs to be done. Was that intended? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. having zfsutils-linux up front is intended, we'll need them fairly early (before rsync). |
||
|
||
if self.model.target is not None: | ||
if os.path.exists(self.model.target): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will show "installing packages to live system" to the user even if there are no packages being installed. It's annoying to fix but that's kind of bad UX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point, fixed