[systemd-devel] [ANNOUNCE] systemd 183
Lennart Poettering
lennart at poettering.net
Tue Jun 19 13:09:19 PDT 2012
On Fri, 01.06.12 23:13, Richard Hughes (hughsient at gmail.com) wrote:
>
> On 25 May 2012 13:28, Lennart Poettering <lennart at poettering.net> wrote:
> > * A framework for implementing offline system updates is now
> > integrated, for details see:
> > http://freedesktop.org/wiki/Software/systemd/SystemUpdates
>
> Seeing as system-update.target is now shipped in systemd itself,
> wouldn't it make sense also to have "r /system-update" in
> /usr/lib/tmpfiles.d/systemd.conf as well?
Hmm, so this wouldn't work if /etc/fstab says that / is supposed to be
read-only.
I think your update script should be the one that remounts / writable,
and then after that removes the file. The remounting probably makes
little sense in tmpfiles.
i.e. do something like this in the beginning of your script:
#!/bin/sh
mount / -o rw,remount
rm -f /system-update
Does that make sense?
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list