asb / raspi-config

Configuration tool for the Raspberry Pi. Now maintained at https://github.com/RPi-Distro/raspi-config
Other
264 stars 332 forks source link

Move to systemd #10

Open LukasKnuth opened 11 years ago

LukasKnuth commented 11 years ago

initscripts is deprecated, update the code to use systemd.

asb commented 11 years ago

Certainly not the case on Debian right now, but if you're wanting to use raspi-config on a systemd system I'd happily accept patches.

LukasKnuth commented 11 years ago

It's deprecated for more up-to-date systems (like Arch). I'm currently looking into it.

LukasKnuth commented 11 years ago

This is the service-file I tested.

Description=Resize the root-partition once

[Service]
ExecStart=/sbin/resize2fs -p /dev/asd
ExecStartPost=/usr/bin/systemctl disable resize_once.service && /usr/bin/rm /etc/systemd/syste/resize_once.service
Type=oneshot

[Install]
WantedBy=multi-user.target

The ExecStartPost-part doesn't seem to work. Better ideas?