* [for-dylan][PATCH] systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDS
@ 2013-04-14 13:48 Koen Kooi
2013-04-15 9:59 ` Burton, Ross
0 siblings, 1 reply; 14+ messages in thread
From: Koen Kooi @ 2013-04-14 13:48 UTC (permalink / raw)
To: openembedded-core; +Cc: Koen Kooi
When using busybox mount the filesystem won't get remounted as 'rw' and bootup will fail.
This fixes the regression seen after switching from 'danny' to 'dylan'.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
meta/recipes-core/systemd/systemd_199.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-core/systemd/systemd_199.bb b/meta/recipes-core/systemd/systemd_199.bb
index 2de9c14..0d07f85 100644
--- a/meta/recipes-core/systemd/systemd_199.bb
+++ b/meta/recipes-core/systemd/systemd_199.bb
@@ -188,7 +188,7 @@ FILES_${PN} = " ${base_bindir}/* \
FILES_${PN}-dbg += "${systemd_unitdir}/.debug ${systemd_unitdir}/*/.debug ${base_libdir}/security/.debug/"
FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd"
-RDEPENDS_${PN} += "dbus"
+RDEPENDS_${PN} += "dbus util-linux-mount"
RRECOMMENDS_${PN} += "systemd-serialgetty systemd-compat-units \
util-linux-agetty \
--
1.8.1.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [for-dylan][PATCH] systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDS
2013-04-14 13:48 [for-dylan][PATCH] systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDS Koen Kooi
@ 2013-04-15 9:59 ` Burton, Ross
2013-04-15 10:09 ` Koen Kooi
2013-04-15 10:47 ` Enrico Scholz
0 siblings, 2 replies; 14+ messages in thread
From: Burton, Ross @ 2013-04-15 9:59 UTC (permalink / raw)
To: Koen Kooi; +Cc: openembedded-core
On 14 April 2013 14:48, Koen Kooi <koen@dominion.thruhere.net> wrote:
> When using busybox mount the filesystem won't get remounted as 'rw' and bootup will fail.
>
> This fixes the regression seen after switching from 'danny' to 'dylan'.
I was going to say that I've never noticed this and have been running
busybox's mount, but on reading the hddimg boot scripts I see it
mounts / as read-write before switching the root.
Does busybox produce any useful errors as to why it's not working? I
cherry-picked some fixes from busybox git but hopefully we're still
missing some and I'd prefer to pull a fix instead of util-linux-mount.
Ross
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [for-dylan][PATCH] systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDS
2013-04-15 9:59 ` Burton, Ross
@ 2013-04-15 10:09 ` Koen Kooi
2013-04-15 10:16 ` Burton, Ross
2013-04-15 10:47 ` Enrico Scholz
1 sibling, 1 reply; 14+ messages in thread
From: Koen Kooi @ 2013-04-15 10:09 UTC (permalink / raw)
To: Burton, Ross; +Cc: openembedded-core
Op 15 apr. 2013, om 11:59 heeft "Burton, Ross" <ross.burton@intel.com> het volgende geschreven:
> On 14 April 2013 14:48, Koen Kooi <koen@dominion.thruhere.net> wrote:
>> When using busybox mount the filesystem won't get remounted as 'rw' and bootup will fail.
>>
>> This fixes the regression seen after switching from 'danny' to 'dylan'.
>
> I was going to say that I've never noticed this and have been running
> busybox's mount, but on reading the hddimg boot scripts I see it
> mounts / as read-write before switching the root.
>
> Does busybox produce any useful errors as to why it's not working?
No, it pretends everything is OK and the remount succeeded.
regards,
Koen
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [for-dylan][PATCH] systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDS
2013-04-15 10:09 ` Koen Kooi
@ 2013-04-15 10:16 ` Burton, Ross
2013-04-15 10:28 ` Koen Kooi
2013-04-15 10:42 ` Burton, Ross
0 siblings, 2 replies; 14+ messages in thread
From: Burton, Ross @ 2013-04-15 10:16 UTC (permalink / raw)
To: Koen Kooi; +Cc: openembedded-core
On 15 April 2013 11:09, Koen Kooi <koen@dominion.thruhere.net> wrote:
>> Does busybox produce any useful errors as to why it's not working?
>
> No, it pretends everything is OK and the remount succeeded.
Thanks busybox!
/me sighs
Ross
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [for-dylan][PATCH] systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDS
2013-04-15 10:16 ` Burton, Ross
@ 2013-04-15 10:28 ` Koen Kooi
2013-04-15 10:42 ` Burton, Ross
1 sibling, 0 replies; 14+ messages in thread
From: Koen Kooi @ 2013-04-15 10:28 UTC (permalink / raw)
To: Burton, Ross; +Cc: openembedded-core
Op 15 apr. 2013, om 12:16 heeft "Burton, Ross" <ross.burton@intel.com> het volgende geschreven:
> On 15 April 2013 11:09, Koen Kooi <koen@dominion.thruhere.net> wrote:
>>> Does busybox produce any useful errors as to why it's not working?
>>
>> No, it pretends everything is OK and the remount succeeded.
>
> Thanks busybox!
>
> /me sighs
The worst part: I debugged this very issue 2 years ago as well, so busybox mount hasn't improved much during that time.
regards,
Koen
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [for-dylan][PATCH] systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDS
2013-04-15 10:16 ` Burton, Ross
2013-04-15 10:28 ` Koen Kooi
@ 2013-04-15 10:42 ` Burton, Ross
2013-04-15 11:00 ` Koen Kooi
2013-04-15 11:31 ` Koen Kooi
1 sibling, 2 replies; 14+ messages in thread
From: Burton, Ross @ 2013-04-15 10:42 UTC (permalink / raw)
To: Koen Kooi; +Cc: openembedded-core
Hi Koen,
On 15 April 2013 11:16, Burton, Ross <ross.burton@intel.com> wrote:
> On 15 April 2013 11:09, Koen Kooi <koen@dominion.thruhere.net> wrote:
>>> Does busybox produce any useful errors as to why it's not working?
>>
>> No, it pretends everything is OK and the remount succeeded.
>
> Thanks busybox!
There's several fixes upstream that we don't have in our busybox, it
would be much appreciated if you could try this patch which rolls them
all up.
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ross/mount&id=1fc11cc25938b6a0c1e9b69a30326de8608cb98f
(yes, I'll fix the patch to have a proper comment :)
Cheers,
Ross
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [for-dylan][PATCH] systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDS
2013-04-15 9:59 ` Burton, Ross
2013-04-15 10:09 ` Koen Kooi
@ 2013-04-15 10:47 ` Enrico Scholz
2013-04-15 10:57 ` Burton, Ross
2013-04-15 11:00 ` Koen Kooi
1 sibling, 2 replies; 14+ messages in thread
From: Enrico Scholz @ 2013-04-15 10:47 UTC (permalink / raw)
To: openembedded-core; +Cc: Burton, Ross
"Burton, Ross" <ross.burton-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
writes:
>> When using busybox mount the filesystem won't get remounted as 'rw'
>> and bootup will fail.
>>
>> This fixes the regression seen after switching from 'danny' to 'dylan'.
>
> I was going to say that I've never noticed this and have been running
> busybox's mount, but on reading the hddimg boot scripts I see it
> mounts / as read-write before switching the root.
This might break systemd's fsck'ing of /.
> Does busybox produce any useful errors as to why it's not working?
busybox's mount just does not read /etc/fstab for 'mount -o remount'.
Code is difficult to read but seems it reads mtab only and applies
options given on cmdline.
Enrico
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [for-dylan][PATCH] systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDS
2013-04-15 10:47 ` Enrico Scholz
@ 2013-04-15 10:57 ` Burton, Ross
2013-04-15 11:00 ` Koen Kooi
1 sibling, 0 replies; 14+ messages in thread
From: Burton, Ross @ 2013-04-15 10:57 UTC (permalink / raw)
To: Enrico Scholz; +Cc: Burton, Ross, openembedded-core
On 15 April 2013 11:47, Enrico Scholz <enrico.scholz@sigma-chemnitz.de> wrote:
>> I was going to say that I've never noticed this and have been running
>> busybox's mount, but on reading the hddimg boot scripts I see it
>> mounts / as read-write before switching the root.
>
> This might break systemd's fsck'ing of /.
And initscripts's fscking too. I'll fix this in init-live.sh (for 1.5!).
Ross
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [for-dylan][PATCH] systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDS
2013-04-15 10:47 ` Enrico Scholz
2013-04-15 10:57 ` Burton, Ross
@ 2013-04-15 11:00 ` Koen Kooi
1 sibling, 0 replies; 14+ messages in thread
From: Koen Kooi @ 2013-04-15 11:00 UTC (permalink / raw)
To: Enrico Scholz; +Cc: Burton, Ross, openembedded-core
Op 15 apr. 2013, om 12:47 heeft Enrico Scholz <enrico.scholz@sigma-chemnitz.de> het volgende geschreven:
> "Burton, Ross" <ross.burton-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> writes:
>
>>> When using busybox mount the filesystem won't get remounted as 'rw'
>>> and bootup will fail.
>>>
>>> This fixes the regression seen after switching from 'danny' to 'dylan'.
>>
>> I was going to say that I've never noticed this and have been running
>> busybox's mount, but on reading the hddimg boot scripts I see it
>> mounts / as read-write before switching the root.
>
> This might break systemd's fsck'ing of /.
Systemd skips fsck if root is rw. Darren sent patches for mkefidisk to pass 'ro', so those work.
regards,
Koen
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [for-dylan][PATCH] systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDS
2013-04-15 10:42 ` Burton, Ross
@ 2013-04-15 11:00 ` Koen Kooi
2013-04-15 11:05 ` Burton, Ross
2013-04-15 11:31 ` Koen Kooi
1 sibling, 1 reply; 14+ messages in thread
From: Koen Kooi @ 2013-04-15 11:00 UTC (permalink / raw)
To: Burton, Ross; +Cc: openembedded-core
Op 15 apr. 2013, om 12:42 heeft "Burton, Ross" <ross.burton@intel.com> het volgende geschreven:
> Hi Koen,
>
> On 15 April 2013 11:16, Burton, Ross <ross.burton@intel.com> wrote:
>> On 15 April 2013 11:09, Koen Kooi <koen@dominion.thruhere.net> wrote:
>>>> Does busybox produce any useful errors as to why it's not working?
>>>
>>> No, it pretends everything is OK and the remount succeeded.
>>
>> Thanks busybox!
>
> There's several fixes upstream that we don't have in our busybox, it
> would be much appreciated if you could try this patch which rolls them
> all up.
>
> http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ross/mount&id=1fc11cc25938b6a0c1e9b69a30326de8608cb98f
Do you have an oe-core patch?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [for-dylan][PATCH] systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDS
2013-04-15 11:00 ` Koen Kooi
@ 2013-04-15 11:05 ` Burton, Ross
2013-04-15 11:22 ` Koen Kooi
0 siblings, 1 reply; 14+ messages in thread
From: Burton, Ross @ 2013-04-15 11:05 UTC (permalink / raw)
To: Koen Kooi; +Cc: openembedded-core
On 15 April 2013 12:00, Koen Kooi <koen@dominion.thruhere.net> wrote:
>> http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ross/mount&id=1fc11cc25938b6a0c1e9b69a30326de8608cb98f
>
> Do you have an oe-core patch?
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/patch/?id=1fc11cc25938b6a0c1e9b69a30326de8608cb98f
will apply to oe-core just as well as it applies to poky.
Ross
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [for-dylan][PATCH] systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDS
2013-04-15 11:05 ` Burton, Ross
@ 2013-04-15 11:22 ` Koen Kooi
0 siblings, 0 replies; 14+ messages in thread
From: Koen Kooi @ 2013-04-15 11:22 UTC (permalink / raw)
To: Burton, Ross; +Cc: openembedded-core
Op 15 apr. 2013, om 13:05 heeft "Burton, Ross" <ross.burton@intel.com> het volgende geschreven:
> On 15 April 2013 12:00, Koen Kooi <koen@dominion.thruhere.net> wrote:
>>> http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ross/mount&id=1fc11cc25938b6a0c1e9b69a30326de8608cb98f
>>
>> Do you have an oe-core patch?
>
> http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/patch/?id=1fc11cc25938b6a0c1e9b69a30326de8608cb98f
> will apply to oe-core just as well as it applies to poky.
'git merge' was very unhappy with it.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [for-dylan][PATCH] systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDS
2013-04-15 10:42 ` Burton, Ross
2013-04-15 11:00 ` Koen Kooi
@ 2013-04-15 11:31 ` Koen Kooi
2013-04-15 11:33 ` Burton, Ross
1 sibling, 1 reply; 14+ messages in thread
From: Koen Kooi @ 2013-04-15 11:31 UTC (permalink / raw)
To: Burton, Ross; +Cc: openembedded-core
Op 15 apr. 2013, om 12:42 heeft "Burton, Ross" <ross.burton@intel.com> het volgende geschreven:
> Hi Koen,
>
> On 15 April 2013 11:16, Burton, Ross <ross.burton@intel.com> wrote:
>> On 15 April 2013 11:09, Koen Kooi <koen@dominion.thruhere.net> wrote:
>>>> Does busybox produce any useful errors as to why it's not working?
>>>
>>> No, it pretends everything is OK and the remount succeeded.
>>
>> Thanks busybox!
>
> There's several fixes upstream that we don't have in our busybox, it
> would be much appreciated if you could try this patch which rolls them
> all up.
>
> http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ross/mount&id=1fc11cc25938b6a0c1e9b69a30326de8608cb98f
With that patch included and util-linux-mount removed:
[ 3.027961] systemd-random-seed[107]: Failed to write new random seed file: Bad file descriptor
[ 3.189475] systemd-tmpfiles[108]: rm_rf(/var/run/udisks): Read-only file system
[ 3.262564] systemd-tmpfiles[108]: rm_rf(/var/run/pm-utils): Read-only file system
[ 3.310582] systemd-tmpfiles[108]: rm_rf(/var/run/dbus): Read-only file system
[ 3.331494] systemd-tmpfiles[108]: rm_rf(/var/run/utmp): Read-only file system
[ 3.357310] systemd-tmpfiles[108]: rm_rf(/var/run/avahi-daemon): Read-only file system
[ 3.383427] systemd-tmpfiles[108]: rm_rf(/var/run/syslogd.pid): Read-only file system
[ 3.410699] systemd-tmpfiles[108]: rm_rf(/var/run/gdm): Read-only file system
[ 3.435955] systemd-tmpfiles[108]: rm_rf(/var/run/connman): Read-only file system
[ 3.462494] systemd-tmpfiles[108]: rm_rf(/var/run/ConsoleKit): Read-only file system
[ 3.492882] systemd-tmpfiles[108]: Failed to create file /var/log/wtmp: Read-only file system
[ 3.522076] systemd-tmpfiles[108]: Failed to create file /var/log/btmp: Read-only file system
[ 3.554021] systemd-tmpfiles[108]: chmod(/var/tmp) failed: Read-only file system
[ 4.676901] systemd-update-utmp[162]: Failed to write utmp record: Read-only file system
So busybox mount is still worthless
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [for-dylan][PATCH] systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDS
2013-04-15 11:31 ` Koen Kooi
@ 2013-04-15 11:33 ` Burton, Ross
0 siblings, 0 replies; 14+ messages in thread
From: Burton, Ross @ 2013-04-15 11:33 UTC (permalink / raw)
To: Koen Kooi; +Cc: openembedded-core
On 15 April 2013 12:31, Koen Kooi <koen@dominion.thruhere.net> wrote:
> So busybox mount is still worthless
Thanks.
In that case, I ACK your patch.
Ross
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2013-04-15 11:51 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-14 13:48 [for-dylan][PATCH] systemd: fix bootup with 'ro' by re-adding util-linux-mount to RDEPENDS Koen Kooi
2013-04-15 9:59 ` Burton, Ross
2013-04-15 10:09 ` Koen Kooi
2013-04-15 10:16 ` Burton, Ross
2013-04-15 10:28 ` Koen Kooi
2013-04-15 10:42 ` Burton, Ross
2013-04-15 11:00 ` Koen Kooi
2013-04-15 11:05 ` Burton, Ross
2013-04-15 11:22 ` Koen Kooi
2013-04-15 11:31 ` Koen Kooi
2013-04-15 11:33 ` Burton, Ross
2013-04-15 10:47 ` Enrico Scholz
2013-04-15 10:57 ` Burton, Ross
2013-04-15 11:00 ` Koen Kooi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.