Skip to content
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

Windows installation with puavo-install #756

Open
wants to merge 15 commits into
base: puavo-reset-windows-prepare-for-installation-use
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions debs/puavo-os/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,14 @@ Depends: ${misc:Depends},
pv,
python3,
python3-dbus,
python3-hivex,
python3-notify2,
rdiff,
ruby-dbus,
ruby-highline,
secure-delete,
sudo,
util-linux,
wget
Description: Bits and pieces needed inside the LTSP chroot image.
Bits and pieces needed inside the LTSP chroot image.
Expand Down
11 changes: 9 additions & 2 deletions parts/core/puavo-conf/scripts/setup_grub_environment
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,19 @@ setup_timeout() {
}

setup_windows_enabled() {
local grubdisk

grubdisk=$(puavo-get-disk-of-filepath /images) || {
echo 'ERROR: failed to get disk of images' >&2
return 1
}

if [ "$(puavo-conf puavo.grub.windows.enabled)" = 'true' ]; then
puavo-manage-efi --no-efi-is-ok enable-windows || return 1
puavo-manage-efi --no-efi-is-ok enable-windows "${grubdisk}" || return 1
grubedit set "puavo_grub_windows_enabled=true" || return 1
else
grubedit unset puavo_grub_windows_enabled || return 1
puavo-manage-efi --no-efi-is-ok disable-windows || return 1
puavo-manage-efi --no-efi-is-ok disable-windows "${grubdisk}" || return 1
fi

return 0
Expand Down
5 changes: 5 additions & 0 deletions parts/ltsp/puavo-install/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ install : installdirs
puavo-client-daemon \
puavo-disk-clone \
puavo-disk-erase \
puavo-get-disk-of-filepath \
puavo-install \
puavo-install-and-update-ltspimages \
puavo-install-grub \
Expand All @@ -51,7 +52,11 @@ install : installdirs
$(INSTALL_DATA) -t $(DESTDIR)$(datarootdir)/dbus-1/system-services \
dbus-1/org.puavo.client.Daemon.service

$(INSTALL_DATA) -t $(DESTDIR)$(libdir)/puavo-ltsp-install \
lib/minimal-bcd

$(INSTALL_PROGRAM) -t $(DESTDIR)$(libdir)/puavo-ltsp-install \
lib/create-bcd \
lib/is-update-available \
lib/ls-old-images-and-rdiffs \
lib/puavo-image-preinst \
Expand Down
Loading