Problem building template

58 views
Skip to first unread message

Davíð Steinn Geirsson

unread,
Nov 14, 2019, 5:11:05 PM11/14/19
to qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I'm trying to build a R4.0 fc30 template in dispvm, but it fails
at the "make build-id" step because the lost+found directory is
in the way.

My build steps:
* Clone https://github.com/QubesOS/qubes-builder
* cp example-configs/qubes-os-r4.0.conf builder.conf
* make get-sources
* make get-sources-extra
* make template-in-dispvm-fc30

The build fails, the last messages in build-logs/template-fc30.log:
[...]
+ make build-id DISTS_VM=fc30
################################################################################
### The following settings copied to builder.conf will make builder use ###
### exactly the same sources ###
################################################################################
BRANCH_antievilmaid = b9d53884e6f2e7c9c6927942250da5e9d24cdebd
BRANCH_app_linux_img_converter = 3488b30bf4f795d15e9f0709afb74e394d7e69e7
BRANCH_app_linux_input_proxy = 9041c874ac7d08fc85a28919486aafe0ef65a852
BRANCH_app_linux_pdf_converter = 5823c3ae5798b24fbb8f1e9a0a124badb119b643
BRANCH_app_linux_snapd_helper = 7808ae1f97cb03abc29b2179be5d69fffc8da6f6
BRANCH_app_linux_split_gpg = v2.0.41
BRANCH_app_linux_tor = d32a73f2cf98e70cbe21f3debf86fc26bdd19e2d
BRANCH_app_linux_usb_proxy = 72172bcc6f02cec1c7a6add6358c4cd5c94c9efc
BRANCH_app_shutdown_idle = e14513f754db19dfc979a84c02c6f41b55a6cb47
BRANCH_app_thunderbird = 1ebbe28d90b54ea58bc53dcc1c889f0019a6bf2f
BRANCH_app_u2f = v1.2.5
BRANCH_app_yubikey = v1.1.3
BRANCH_artwork = 5370be58e0d104e57698fbce5bf6cdd012854992
warning: could not open directory 'lost+found/': Permission denied
*** ERROR: Component builder not clean - commit or stash the changes!
make: *** [Makefile:1030: build-id] Error 1
- --> Generating the package
ERROR: Didn't received root.img, build failed


Is this a known problem? Am I missing some steps in the build process?

A solution might be to put the builder into a subdirectory rather than
directly in the root of the image. But I guess this must have worked
as-is at some point?

- -Davíð

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEykYeTVy71V+1O28fFv/LUCW76uAFAl3N0PAACgkQFv/LUCW7
6uBLJggAqpq5x5y+OhQJltYfjpcSC189bG9cPAXBtBLbXU3hm6C3HCJ7DZpHgXOs
mP3gleaDQkGAsuvPpY/cuPT7GSqbM4xDsnvl810xF/Zuoa/uOeqlpwrT/UmkU3UD
4aJVmJNwlSpWkvCUe/yuF6QUGkb0hdj29inlx/G4Il6uyR8CeXedMaJolhI/XaNP
gKyy6fMJ5Pn4CLZSg5ej/i1PJM0QS9mwnwV8ZVnQZCcSL4h1ZD8jfuuo2xVtih9O
PEHpG1lk7L+Z+UUNSss43vSBTP1x7KYLXNKNitHOuS7jKm46EJJut/XjEiIc6knH
C2pLHQU11MOHvRe4854FlNdgdiLwjw==
=6Ts8
-----END PGP SIGNATURE-----

Marek Marczykowski-Górecki

unread,
Nov 14, 2019, 10:00:50 PM11/14/19
to Davíð Steinn Geirsson, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Thu, Nov 14, 2019 at 10:10:56PM +0000, Davíð Steinn Geirsson wrote:
> I'm trying to build a R4.0 fc30 template in dispvm, but it fails
> at the "make build-id" step because the lost+found directory is
> in the way.
>
> My build steps:
> * Clone https://github.com/QubesOS/qubes-builder
> * cp example-configs/qubes-os-r4.0.conf builder.conf
> * make get-sources
> * make get-sources-extra
> * make template-in-dispvm-fc30
>
> The build fails, the last messages in build-logs/template-fc30.log:
> [...]
> + make build-id DISTS_VM=fc30
(...)
> warning: could not open directory 'lost+found/': Permission denied
> *** ERROR: Component builder not clean - commit or stash the changes!
> make: *** [Makefile:1030: build-id] Error 1
> --> Generating the package
> ERROR: Didn't received root.img, build failed
>
>
> Is this a known problem? Am I missing some steps in the build process?

The "lost+found" message isn't a problem. The next one is - you have
some uncommitted changes in the main builder directory. Check with 'git
status'.

> A solution might be to put the builder into a subdirectory rather than
> directly in the root of the image. But I guess this must have worked
> as-is at some point?

Yes, it does work as-is.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAl3OFNoACgkQ24/THMrX
1yzT/gf/e6rU+lYK9SM93Vu+ifjJf8+JO4WTrdwJZfayMWamQ6W3bxVIDKdIXkWg
kirmdB3bzAWyQg0RPzcKIWfDcRi+YbqNfnDlyILzESNyOhFFwa4kVRGfq9zqkfx6
2T/9cpyRHqJ9ss9k3MIlfX91AWjC4n70oo9EHbcFSKVcyecZkp3iabUwhKcTo6Tu
aKQRHuRUUZcijZBgdcUGvcvhNmNtzC1pafhO24FhDwDNtVKjoGdBL+Aw83RL09kG
odfiO0hb+hdv+gIdF2Zy1A6Sh3dFT3jB2iJJVbrbFoFjtNJ/ebg9xqXW1yx6bkvG
RBhYBoy/0td7lvg+WMovegik0HpD3Q==
=yyK+
-----END PGP SIGNATURE-----

Davíð Steinn Geirsson

unread,
Nov 15, 2019, 8:01:08 AM11/15/19
to Marek Marczykowski-Górecki, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Fri, Nov 15, 2019 at 04:00:41AM +0100, Marek Marczykowski-Górecki wrote:
> On Thu, Nov 14, 2019 at 10:10:56PM +0000, Davíð Steinn Geirsson wrote:
> > I'm trying to build a R4.0 fc30 template in dispvm, but it fails
> > at the "make build-id" step because the lost+found directory is
> > in the way.
> >
> > My build steps:
> > * Clone https://github.com/QubesOS/qubes-builder
> > * cp example-configs/qubes-os-r4.0.conf builder.conf
> > * make get-sources
> > * make get-sources-extra
> > * make template-in-dispvm-fc30
> >
> > The build fails, the last messages in build-logs/template-fc30.log:
> > [...]
> > + make build-id DISTS_VM=fc30
> (...)
> > warning: could not open directory 'lost+found/': Permission denied
> > *** ERROR: Component builder not clean - commit or stash the changes!
> > make: *** [Makefile:1030: build-id] Error 1
> > --> Generating the package
> > ERROR: Didn't received root.img, build failed
> >
> >
> > Is this a known problem? Am I missing some steps in the build process?
>
> The "lost+found" message isn't a problem. The next one is - you have
> some uncommitted changes in the main builder directory. Check with 'git
> status'.

Hm, I assumed the lost+found was the untracked file git was complaining
about, but you are right.

I was originally trying to build a modified tree with my own commits, but
before posting I tried it again starting from a known-clean checkout.

Indeed there is an untracked 'rpmdb/' in the tree now. I just tried another
clean build, following the above steps on a fc30 AppVM, running 'git status'
after every step. The rpmdb directory seems to be created by
'make get-sources'.

I'll have to investigate further exactly which step of get-sources causes
this.

>
> > A solution might be to put the builder into a subdirectory rather than
> > directly in the root of the image. But I guess this must have worked
> > as-is at some point?
>
> Yes, it does work as-is.

Yeah, I figured it must, since otherwise CI would be broken. Not sure
why this is an issue on my end yet.

Thanks,
Davíð

>
> --
> Best Regards,
> Marek Marczykowski-Górecki
> Invisible Things Lab
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
>
> --
> You received this message because you are subscribed to the Google Groups "qubes-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to qubes-devel...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-devel/20191115030041.GY5763%40mail-itl.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEykYeTVy71V+1O28fFv/LUCW76uAFAl3OoYwACgkQFv/LUCW7
6uCTbQgAvZe6Mr6oEy5g7TykshdZvh7L+eCTUWJCll5w0n0ZJiM3qIY+T6fjIe5f
4nsg+Y2b6YX643pAG8Nzxr/55HInY4vhW5H/hUOEy8W5Z9EKLoG+Jw8z3jpL1mdv
ZV1SpVA2nU0oEfEJ0jLw1ZekX6u5FIwB+rWdkR2PC9tms5ppdLShAfW7nOerMhgb
hpKQUaEzWt85h2aZ7zVfNRHnOiH4GAhkN2JjCFk0Nm9/urf8kiYcVZVH8DPxP7j5
9OhKd61ecCVh1qPox+eX3nYqZtONv12rRVVPHakbDu2OXID8Y+Aumd1uqcphEfJV
ZuhbZGyf/LTVnlmyMsaNPi/knnaEYA==
=cme9
-----END PGP SIGNATURE-----

Marek Marczykowski-Górecki

unread,
Nov 15, 2019, 8:14:27 AM11/15/19
to Davíð Steinn Geirsson, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

See makefile of linux-dom0-updates, there is rpmdb directory created. It
should be at qubes-src/linux-dom0-updates/rpmdb, but maybe something
gone wrong?
You can check each component separately with:

make COMPONENTS=linux-dom0-updates get-sources

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAl3OpKsACgkQ24/THMrX
1ywUkwf9GEn85KEEWxKeUqJ7252TkbQ92UcT0dkNjUao7eFKG9rQmA0uRsRWJpjV
hJ5kI+89KAYEqJ0wIFPZgdPLQN5f5x81dnWxDDV+MFnvdJhezv/s5kb6MkPJ/tBB
Ak8kd16BtV91cvmKZWETUQyiWqllw+oBy7EI+2G+8SjNCyR9X7j/vnaJTsLVw151
RXnPKOQ73Ltb+E4pORwl5meMSCo9G0I/UEUYfq1tvJk1hHcTruM7UGV6mrR7QIyR
WuJGohqzN2+sBaKyG5t1sXqSWFeWtks6kyjLckwhQaWRSUo0VyEBX7L6hyF+z7Up
lwmB8knbaS2moTH4kpi92rhiztWuxw==
=aS1F
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages