InsanePrawn
2ece1f288c
move pacman.conf body to generator.py, fix check_space for build chroots
...
with check_space=True, build chroots fail to pacman -S anything, because their rootfs is not a mountpoint,
hence pacman's space calculations will fail and return not enough free space.
We do want these space checks when pacstrapping device rootfilesystems though.
2022-02-17 02:32:50 +01:00
InsanePrawn
306aaeb9a6
chroot.create_user(): change user password instead of root's
2022-02-14 20:51:43 +01:00
InsanePrawn
3ed8d379dd
Add help strings to all click CMDs
2022-02-13 19:57:04 +01:00
InsanePrawn
190251dd7d
packages, chroot: make sure chroots are initialised and /prebuilts is mounted
2022-01-29 07:51:38 +01:00
InsanePrawn
6bc3d36b11
chroot.py: small fixes, mainly: copy extra_packages and don't just use instance dict
2022-01-29 07:49:00 +01:00
InsanePrawn
63b4619892
chroot.py: add .activate() and mount_{pacman_cache,packages}() to cmd_chroot() and activate_crossdirect()
2022-01-28 19:16:22 +01:00
InsanePrawn
5bdc437f79
fix formatting
2022-01-27 14:27:39 +01:00
InsanePrawn
209708a33e
chroot.create_user(): default username to 'kupfer'
2022-01-27 05:06:01 +01:00
InsanePrawn
dfce1cf4e0
chroot.mount_rootfs(): no need to put "loop" into mount options, loopdev is created externally
2022-01-26 18:14:51 +01:00
InsanePrawn
fd46977a2f
chroot.py: try_install_packages(): pacman -S '--overwrite=/*'
2022-01-26 17:50:52 +01:00
InsanePrawn
a0a5a5a677
Migrate leftovers to CHROOT_PATHS
2022-01-26 17:50:08 +01:00
InsanePrawn
8ead5c9542
Remove all static references to /prebuilts
2022-01-26 15:56:38 +01:00
InsanePrawn
b65823bc10
Introduce constants.CHROOT_PATHS to spec paths _inside_ chroots
2022-01-26 15:50:41 +01:00
InsanePrawn
c898e0a6b5
chroot.py: mount_crosscompile(): add fail_if_mounted=False parameter
2022-01-26 14:05:12 +01:00
InsanePrawn
ae0093b356
chroot.py: finally fix mount detection(?) and leaking (partially ignore it :/)
2022-01-26 13:29:39 +01:00
InsanePrawn
844646baca
Chroot.mount(): don't purely rely on ismount(), also check self.active_mounts as we should.
2021-12-20 04:21:09 +01:00
InsanePrawn
e3f49042ff
chroot.try_install_packages(): Always refresh DBs (-Sy) on first try
2021-12-17 03:23:14 +01:00
InsanePrawn
b08326d707
chroot.py: fix error message
2021-12-01 20:32:34 +01:00
InsanePrawn
64bcdcfb5f
Packages: Move makepkg parsing into build_chroot
2021-12-01 19:59:35 +01:00
InsanePrawn
a66992ff45
chroot: add option not to add kupfer repos to avoid bootstrapping problems later
2021-10-27 02:46:53 +02:00
InsanePrawn
e6c55a1311
Chroot.initialize: also bind-mount pacman-cache for base-like chroots (that don't get copied)
2021-10-27 02:43:48 +02:00
InsanePrawn
8934d94f9c
chroot.py: fix activation and initialisation of build_chroots: mount packages
2021-10-27 00:48:15 +02:00
InsanePrawn
8867edf876
chroot: change get_device_chroot() signature to use device, flavour instead of name
2021-10-25 20:58:29 +02:00
InsanePrawn
efbecb3e40
Chroot: add mount_rootfs()
...
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-10-25 20:58:04 +02:00
InsanePrawn
0884cb2efd
Chroot: clean up and centralise unmounting
2021-10-25 20:56:12 +02:00
InsanePrawn
38438d5fda
Chroot.initialise(): add reset
param, refactor in general
2021-10-25 01:51:03 +02:00
InsanePrawn
49e6bf740f
Chroot.run_cmd(): add cwd
param, convert packages.setup_sources() to use run_cmd() for makepkg
2021-10-25 01:51:03 +02:00
InsanePrawn
4cc0235329
chroot.py: fixes
2021-10-25 01:51:03 +02:00
InsanePrawn
bc8904c1f1
WIP: make packages.py work moar
2021-10-25 01:51:03 +02:00
InsanePrawn
3a9deb2340
WIP: refactor packages.py to use Chroot
2021-10-25 01:51:03 +02:00
InsanePrawn
06fa679bd5
chroot.py: add Chroot.reset()
2021-10-25 01:51:03 +02:00
InsanePrawn
d84e82ec64
chroot.py: cleanups
2021-10-25 01:51:03 +02:00
InsanePrawn
91cec7fabd
Chroot.activate(): actually do the mounting
2021-10-25 01:51:03 +02:00
InsanePrawn
c5183bd0bf
Refactor chroot.py into Chroot class
2021-10-25 01:51:03 +02:00
jld3103
c22b509347
Further fix package building
2021-10-17 18:14:39 +02:00
jld3103
90366e0a85
Simplify generation of pacman.conf
2021-10-16 10:45:43 +02:00
InsanePrawn
c5a12132d3
chroot: always overwrite makepkg.conf (fixes .zst vs .xz confusion)
2021-10-10 18:29:44 +02:00
InsanePrawn
4bba3e606c
crossdirect rustc hotfix
2021-10-10 14:06:25 +02:00
jld3103
77ebd48eab
Fix image building
2021-10-08 15:22:02 +02:00
jld3103
a8695f0095
Create pacman cache dir if it does not exist
2021-10-08 10:03:10 +02:00
InsanePrawn
5f67435570
Really really make crossdirect work: symlink /usr/include to /include
2021-10-07 13:51:01 +02:00
jld3103
291ddb85ca
Always install base, base-devel and git inside of the base chroots
2021-10-06 21:25:44 +02:00
jld3103
c4760bd99e
Fix formatting
2021-10-06 21:02:30 +02:00
InsanePrawn
eb67c34f9b
i think crossdirect works for real now?
2021-10-05 20:31:11 +02:00
InsanePrawn
643cc21d3c
bugfixes! what kind of drunk seafood wrote these?
2021-10-05 16:36:44 +02:00
InsanePrawn
0b2caa02af
Split up repos by arches, always add already-built packages to repo file again, don't use repo-add --new, ...
...
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-10-04 20:16:27 +02:00
InsanePrawn
1ba4dcfaec
refactor packages.py code into chroot.generate_makepkg_conf(), use generated conf in check_package_version_built()
2021-10-04 14:36:39 +02:00
InsanePrawn
6242e4850d
partially fix crossdirect and QEMU_LD_PREFIX env var, copy /lib/ld-linux-* to foreign chroot for cross-execution
2021-10-04 13:34:37 +02:00
InsanePrawn
b490cd10ee
Clean up envs passing for chroots, add crossdirect packages (todo: cleanup)
2021-10-02 06:36:48 +02:00
InsanePrawn
d85c00fa12
Move mounting code to utils.py, move a lot of chroot-logic from packages to chroot.py, cmd_chroot
...
also moar crossdirect
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-10-01 18:30:01 +02:00