We already do this post install for ISO but on images we leave bakery sit.
I suggest we do it how RebornOS did cala before
Deploy this script to /usr/bin/remove-bakery (don't forget to chmod)
#! /bin/sh
/usr/bin/pacman -Rncsu --noconfirm bakery bakery-gui bakery-tui
/usr/bin/systemctl disable remove-bakery.service
/usr/bin/rm -rf /usr/lib/systemd/system/remove-bakery.service
/usr/bin/rm -rf /usr/bin/remove-bakery
and this to /usr/lib/systemd/system/remove-bakery.service
[Unit]
Description=Remove Bakery
[Service]
Type=oneshot
ExecStart=/usr/bin/remove-bakery
[Install]
WantedBy=multi-user.target
Then after install finish we systemctl enable remove-bakery.service (note should not be --now)
This is by far the most clean way i can suggest as removing bakery packages while the app is running causes problems
We already do this post install for ISO but on images we leave bakery sit.
I suggest we do it how RebornOS did cala before
Deploy this script to
/usr/bin/remove-bakery(don't forget to chmod)and this to
/usr/lib/systemd/system/remove-bakery.serviceThen after install finish we
systemctl enable remove-bakery.service(note should not be --now)This is by far the most clean way i can suggest as removing bakery packages while the app is running causes problems