Skip to content

Remove Bakery post install #17

@Rippanda12

Description

@Rippanda12

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions