feat(installer): install PacManager on the target system only
PacManager (FWS-PacManage 1.2.1) is packaged like fws-dnd: a local PKGBUILD with the sources vendored in the repository, because the upstream Gitea is private and makepkg cannot fetch from it during the build. It is deliberately absent from packages.x86_64. On a live system one is about to replace, a package manager serves no purpose, and it would drag qt6-base into the squashfs for nothing. build.sh drops the built package into the image instead, and the kickstart %post installs it into the target, then deletes the file. Two conditions there: only when a desktop was chosen (it is a GUI application, nothing could launch it on a command-line install), and never blocking -- "pacman -U" resolves qt6-base over the network, and no PacManager is not a failed installation. The binary goes to /usr/lib/fws-pacmanage rather than /usr/bin: PluginManager looks for its plugins in applicationDirPath()/plugins, so /usr/bin would mean a /usr/bin/plugins directory polluting a PATH entry. Binary and plugins stay together in a private directory and /usr/bin/fws-pacmanage is a symlink -- Qt resolves /proc/self/exe, so the plugins are still found. Upstream ships no .desktop file, so one is provided here. build.sh also gains a guard: it now checks, before any lengthy step, that every package only local-repo can provide is actually built. Until now a missing one surfaced as a bare "target not found" from pacman, after the mirror refresh, the full upgrade and the whole mkarchiso setup -- several minutes for an error detectable in one second. Signed-off-by: nocode <suzuku295@gmail.com>
This commit is contained in:
1 parent
c7607b3f37
commit
213ff2d47d
6 files changed
+183
-1
No files matched your search
+1
-1
@@ -352,7 +352,7 @@ done
|
||||
# --- PKGBUILD locaux FWS (ordre explicite, feuilles d'abord, anaconda dernier) ---
|
||||
LOCAL_PKGBUILDS_DIR="$SCRIPT_DIR/pkgbuilds"
|
||||
LOCAL_BUILD_ORDER=(
|
||||
fws-dnd
|
||||
fws-dnd fws-pacmanage
|
||||
pykickstart python-productmd python-requests-file python-simpleline
|
||||
python-crypt_r python-iso639 python-langtable python-meh python-blivet
|
||||
anaconda-widgets anaconda
|
||||
|
||||
Reference in new issue
Block a user