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

qubes-builder leaves unmounted filesystems #2440

Closed
tezeb opened this Issue Nov 18, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@tezeb

tezeb commented Nov 18, 2016

When building templates(tested on archlinux, but looking at Makefile it seems that it affects all dists), after build is finished mounts done during dist-prepare-chroot make target are not unmounted. As there are even 3 scripts for handling unmounts(#1157), it would be nice to use them.

The issue is that cleaning repo(ie. rm -Rf) requires using sudo, as there are root owned files inside(chroot-contents), but using it with proc/sys etc mounted is probably not the best idea.

This happens when building Archlinux template for Qubes R3.2.

Expected behavior:

make COMPONENT-vm shall not leave fs mounted

Actual behavior:

make COMPONENT-vm leaves all dist specific directories mounted

Steps to reproduce the behavior:

in qubes-builder, run
./setup
make qubes-vm

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Nov 18, 2016

Member

This is intentional behavior, see QubesOS/qubes-builder@74c2d04 for reasoning.
If you want to cleanup - see make clean targets (make help can be of use). It will umount what's needed first. Also you can just call make umount.

Member

marmarek commented Nov 18, 2016

This is intentional behavior, see QubesOS/qubes-builder@74c2d04 for reasoning.
If you want to cleanup - see make clean targets (make help can be of use). It will umount what's needed first. Also you can just call make umount.

@marmarek marmarek closed this Nov 18, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment