-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Arch Linux template can't be built on 4.1 seemingly due to chroot failure to create etc
#7401
Comments
Have you run Try removing the chroot ( |
I have run |
I regularly rebuild the archlinux packages and templates on 4.1 using
both a Fedora-34 and debian-11 qube for building.
I don't think (I haven't got your original post to hand) that you say what
build machine you are using, or which of the routes outlined on the
somewhat outdated guide you have followed.
It would be helpful if you could do this.
Use a stock template cloned, and then install the
dependencies as needed.
Use setup to select the template to build.
That works.
Try it with and without `USE_DIST_BUILD_TOOLS=1` in the builder.conf
file.
|
It does not work for me. even with USE_DIST_BUILD_TOOLS=1 set. I am using fedora-34 to build, and building the standard archlinux template. Also that outdated guide is the official one, if its the guide thats the problem, could you upload an updated version? Log of errors is here: |
I see a lot of "Permission denied", could you check that sudo works? Also, please give us the |
In the VM i am using to build, sudo itself is working without a prompt. Here is proof: [user@build-archlinux qubes-builder]$ sudo whoami
root Sudo does not work within the chroot, before ive had to install and configure sudo manually(edit sudoers, with nopasswd added), the build still failed that time. About the git describe output, i assume you mean in step 3. [user@build-archlinux qubes-builder]$ git tag -v $(git describe)
object 1fb9d931e2644a4e8819f486db9c08140bd8e1c7
type commit
tag mm_1fb9d931
tagger Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> 1646914540 +0100
Tag for commit 1fb9d931e2644a4e8819f486db9c08140bd8e1c7
gpg: Signature made Thu Mar 10 12:15:41 2022 GMT
gpg: using RSA key 0064428F455451B3EBE78A7F063938BA42CFA724
gpg: Good signature from "Marek Marczykowski-Górecki (Qubes OS signing key) <marmarek@invisiblethingslab.com>" [full] And here is the output of git describe on its own: [user@build-archlinux qubes-builder]$ git describe
mm_1fb9d931 |
Just to give a bigger picture, here are logs for all steps in step 5. i start btw with a fresh appVM so its not polluted. Part 1 Command:make remount Log here for command output:Part 2 Command:make install-deps Log here for command output:Part 3 Command:make get-sources Log here for command output:Part 4 Command:make qubes-vm Log here for command output:Right after running those commands i run Part 4 command again |
Try without the |
On Mon, Apr 04, 2022 at 05:35:40AM -0700, JamesClarke7283 wrote:
It does not work for me. even with USE_DIST_BUILD_TOOLS=1 set.
Also that outdated guide is the official one, if its the guide thats the problem, could you upload an updated version?
That guide is *not* official. It is in the External documentation
section, marked as "unoffial, third-party documentation"
|
Ah it now works, it builds and i have installed it, after commenting out those lines in that file. I also got that |
If I read this correctly, the 5-4.log shows an error asking for 'make
remount', which seems at odds with your step 1.
Just to be sure I tested with a clean build machine, NOT following those
instructions, but following my nose (and the official docs).
Git clone qubes-builder
Run setup and select "archlinux-minimal", and follow prompts.
make get-sources
make qubes-vm
Errors - follow advice to 'make remount'
make qubes-vm
works for me.
If it matters, that's a stock Fedora-34 template, and the builder has
memory 800, maxmem 8000, 4vcpus.
Can you test that?
|
Do you have this file: /etc/profile.d/99-makeflags.sh If you don't, thats probably why it works. As commented above, mine now builds after i commented out lines from that file. |
I've followed this advice by not creating the It all works up until I run From what I can tell someone discussed this as being a known bug but I can't see it mentioned in the PR. |
It's likely you ran into an error in the template build process, and that's why In particular, you can grep for |
This worked, I had to make sure to run the However I'm running into the issue of |
See #7305. I believe yum used to be installed in dom0 by default but no longer is, so you'll have to install it yourself. |
Alright, this seems to be solved for me. I have successfully built the minimal archlinux template and it seems to be able to install things via pacman. Thank you for your help and thanks to everyone else. |
How to file a helpful issue
Qubes OS release
4.1
Brief summary
I am having issues building the arch linux template on the 4.1 release. I'm having various issues on step 5 in this guide.
Steps to reproduce
Follow the guide down to step 5 and run
make vmm-xen-vm
ormake qubes-vm
Expected behavior
It is expected to complete the compilation.
Actual behavior
make vmm-xen-vm
errors with the output:The log contains:
Running
make qubes-vm
errors with the output:The log contains:
The directory
chroot-vm-archlinux
only containshome
,tmp
andvar
.etc
does not seem to have been created correctly.The text was updated successfully, but these errors were encountered: