Skip to content

Commit

Permalink
flux/src/xconf: notes sysd
Browse files Browse the repository at this point in the history
  • Loading branch information
sam#gemmi-win10 committed Nov 4, 2023
1 parent 173b9cb commit 833ac57
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions flux/src/xconf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,31 +76,31 @@ $RUN \
su - headless -c "dbus-launch dconf reset -f /; dbus-launch dconf load / < /home/headless/dconf.ini; ";\
dbus-launch dconf update;

# SYSTEMD
$RUN \
# systemd1
cd /lib/systemd/system/sysinit.target.wants/ \
&& rm $(ls | grep -v systemd-tmpfiles-setup); \
\
rm -f /lib/systemd/system/multi-user.target.wants/* \
/etc/systemd/system/*.wants/* \
/lib/systemd/system/local-fs.target.wants/* \
/lib/systemd/system/sockets.target.wants/*udev* \
/lib/systemd/system/sockets.target.wants/*initctl* \
/lib/systemd/system/basic.target.wants/* \
/lib/systemd/system/anaconda.target.wants/* \
/lib/systemd/system/plymouth* \
/lib/systemd/system/systemd-update-utmp*; \
\
# systemd2
# find `ls |grep -Ev "^home|^root|^usr|^opt|^mnt|^sys|^proc"`
find `echo /etc/ /lib/ /var/` -name "*systemd*" |grep ".service$" |grep "supervi" |while read one; do echo $one; rm -f $one; done; \
\
dpkg-divert --local --rename --add /sbin/udevadm; ln -s /bin/true /sbin/udevadm; \
systemctl enable de-entry; systemctl enable de-start; \
systemctl disable dropbear; systemctl disable supervisor; \
# systemctl mask supervisor; \
systemctl disable systemd-resolved;
# # SYSTEMD
# $RUN \
# # systemd1
# cd /lib/systemd/system/sysinit.target.wants/ \
# && rm $(ls | grep -v systemd-tmpfiles-setup); \
# \
# rm -f /lib/systemd/system/multi-user.target.wants/* \
# /etc/systemd/system/*.wants/* \
# /lib/systemd/system/local-fs.target.wants/* \
# /lib/systemd/system/sockets.target.wants/*udev* \
# /lib/systemd/system/sockets.target.wants/*initctl* \
# /lib/systemd/system/basic.target.wants/* \
# /lib/systemd/system/anaconda.target.wants/* \
# /lib/systemd/system/plymouth* \
# /lib/systemd/system/systemd-update-utmp*; \
# \
# # systemd2
# # find `ls |grep -Ev "^home|^root|^usr|^opt|^mnt|^sys|^proc"`
# find `echo /etc/ /lib/ /var/` -name "*systemd*" |grep ".service$" |grep "supervi" |while read one; do echo $one; rm -f $one; done; \
# \
# dpkg-divert --local --rename --add /sbin/udevadm; ln -s /bin/true /sbin/udevadm; \
# systemctl enable de-entry; systemctl enable de-start; \
# systemctl disable dropbear; systemctl disable supervisor; \
# # systemctl mask supervisor; \
# systemctl disable systemd-resolved;

# LOCALE, OHMYBASH, SETTINGS
$RUN \
Expand Down

0 comments on commit 833ac57

Please sign in to comment.