Commit graph

166 commits

Author SHA1 Message Date
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
2209447af0 ssh: don't fail if a possible key's pubkey file doesn't exist 2021-10-25 20:47:17 +02:00
InsanePrawn
525c012d9c cmd_image_inspect(): add --shell/-s 2021-10-25 20:45:23 +02:00
InsanePrawn
9ece4f582e cmd_boot(): add choices list to type arg 2021-10-25 18:21:17 +02:00
InsanePrawn
ee4f899254 partially add config.file['paths']['images'] (mostly taken from c5c8104a60)
Co-authored-by: jld3103 <jld3103yt@gmail.com>
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-10-25 17:48:51 +02:00
InsanePrawn
9258cbf76d config.py: docstring fixes 2021-10-25 01:51:03 +02:00
InsanePrawn
3ea3366534 cmd_config_set(): fix --non-interactive 2021-10-25 01:51:03 +02:00
InsanePrawn
482fa38954 config.py: config set: convert to correct type using click 2021-10-25 01:51:03 +02:00
InsanePrawn
34a992b5a0 config.py: add cmd_config_{get,set} 2021-10-25 01:51:03 +02:00
InsanePrawn
e6f7cc785e add -N alias for --non-interactive 2021-10-25 01:51:03 +02:00
InsanePrawn
38438d5fda Chroot.initialise(): add reset param, refactor in general 2021-10-25 01:51:03 +02:00
InsanePrawn
46b638059c Fix removing added packages from pacman cache
Now this behaviour may seem disk-shreddy, but the real issue is always running add_file_to_repo() during package scanning,
which should be solved by parsing the repo db and comparing checksums at package build time and in case pacman installation fails.
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
6be94271a2 make packages build work again 2021-10-25 01:51:03 +02:00
InsanePrawn
4cc0235329 chroot.py: fixes 2021-10-25 01:51:03 +02:00
InsanePrawn
4643cc499a fixup image.py enough to run kupferbootstrap... 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
InsanePrawn
8d1061004a config.py: fix config parsing warning and exception throwing
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-10-25 01:50:01 +02:00
InsanePrawn
3390014a9c packages.py: fix package update cmd with --non-interactive 2021-10-25 01:47:35 +02:00
jld3103
0e07a33968 Add packages sideload feature 2021-10-18 09:00:11 +02:00
InsanePrawn
135ffc5def packages.py: cmd_build(): batch CROSSDIRECT_PKGS installation 2021-10-18 01:54:39 +02:00
jld3103
c22b509347 Further fix package building 2021-10-17 18:14:39 +02:00
jld3103
fe52671e06 Fix package building 2021-10-17 13:48:37 +02:00
InsanePrawn
52458bd314 manage (download, pull) pkgbuilds.git, move it inside .cache. add git() convenience wrapper 2021-10-17 03:23:29 +02:00
jld3103
b191e307aa Write correct pacman.conf after image is built 2021-10-16 10:46:27 +02:00
jld3103
90366e0a85 Simplify generation of pacman.conf 2021-10-16 10:45:43 +02:00
jld3103
37b5ecb34b Add phosh flavour and repository 2021-10-14 20:10:32 +02:00
jld3103
78af4ebce8 Drop pkgbuild pkgname prefix check 2021-10-13 18:35:06 +00:00
jld3103
0d7259f133 Fix cross/* packages installation 2021-10-13 20:29:10 +02:00
InsanePrawn
ddbbb6a710 config: init prompting refactors 2021-10-12 04:30:45 +02:00
InsanePrawn
22308aadb2 config.py: format 2021-10-12 02:33:34 +02:00
InsanePrawn
1a6979d9cb makepkg.conf: fix HOSTSPEC used when _not_ setting up cross-compilation
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
2021-10-12 02:17:32 +02:00
jld3103
949183b290 Merge branch 'config' of gitlab.com:kupfer/kupferbootstrap into config 2021-10-10 21:23:49 +02:00
jld3103
e88bc393bb Allow semicolon in PKGBUILD strings 2021-10-10 21:23:39 +02:00
jld3103
9aa17d1fc7 Fix check if split packages have been built 2021-10-10 21:23:19 +02:00
jld3103
c70db11d64 Fix resize2fs 2021-10-10 21:21:46 +02:00
jld3103
58cf5b40b2 Add new cross repo 2021-10-10 21:21:23 +02:00
InsanePrawn
fd4ac1c2cd no need to force-reinstall qemu/binfmt anymore 2021-10-10 18:40:45 +02:00
InsanePrawn
482744feb2 mount(): properly handle type. (forgotten to commit with binfmt mounting) 2021-10-10 18:29:44 +02:00
InsanePrawn
7f2df127d1 config: init prompt improvements (forgotten changes) 2021-10-10 18:29:44 +02:00
InsanePrawn
c5a12132d3 chroot: always overwrite makepkg.conf (fixes .zst vs .xz confusion) 2021-10-10 18:29:44 +02:00
InsanePrawn
fb14a360bd dockerfile: add $arch to repo uri 2021-10-10 18:29:44 +02:00
InsanePrawn
87345ab2da refactor packages.py, register qemu-binfmt manually 2021-10-10 18:29:44 +02:00