* rootfs mounted read-only on Live USB (x86-64) @ 2016-06-03 9:06 Dan O'Donovan 2016-06-03 9:54 ` Oleksandr Poznyak 0 siblings, 1 reply; 5+ messages in thread From: Dan O'Donovan @ 2016-06-03 9:06 UTC (permalink / raw) To: yocto Hi all Has anyone else noticed that the root file-system appears to be mounted read-only when booting a Live USB image from Yocto 2.1. This is on a sato build from the krogoth branch of poky and meta-intel, for a generic x86-64 machine (4.4 kernel). I'm transferring the resulting .iso image to a usb stick using 'dd', and then picking the 'boot' option at startup. As well as a bunch of errors about the read-only filesystem (e.g. failing to create files in /var and other locations), the desktop UI fails to load. This worked fine with Yocto 2.0. I have a hunch that it might be caused by a lack of aufs support. Is it possible that aufs patches were omitted from the x86 kernels in Yocto 2.1? Thanks, -Dan P.S. It works fine if I just install it directly, or if I use the .hddimg, instead of trying to boot the live image from the .iso. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rootfs mounted read-only on Live USB (x86-64) 2016-06-03 9:06 rootfs mounted read-only on Live USB (x86-64) Dan O'Donovan @ 2016-06-03 9:54 ` Oleksandr Poznyak 2016-06-03 14:15 ` Dan O'Donovan 0 siblings, 1 reply; 5+ messages in thread From: Oleksandr Poznyak @ 2016-06-03 9:54 UTC (permalink / raw) To: Dan O'Donovan; +Cc: yocto [-- Attachment #1: Type: text/plain, Size: 1422 bytes --] Hi, Check if "read-only-rootfs" feature is added to any of these variables either in your local.conf or your image bitbake recipe: Something like that: IMAGE_FEATURES = "read-only-rootfs" EXTRA_IMAGE_FEATURES += "read-only-rootfs" Thanks, Oleksandr Poznyak! On Fri, Jun 3, 2016 at 12:06 PM, Dan O'Donovan <dan@emutex.com> wrote: > Hi all > > Has anyone else noticed that the root file-system appears to be mounted > read-only when booting a Live USB image from Yocto 2.1. > > This is on a sato build from the krogoth branch of poky and meta-intel, > for a generic x86-64 machine (4.4 kernel). > > I'm transferring the resulting .iso image to a usb stick using 'dd', and > then picking the 'boot' option at startup. > > As well as a bunch of errors about the read-only filesystem (e.g. failing > to create files in /var and other locations), the desktop UI fails to load. > > This worked fine with Yocto 2.0. > > I have a hunch that it might be caused by a lack of aufs support. Is it > possible that aufs patches were omitted from the x86 kernels in Yocto 2.1? > > Thanks, > -Dan > > P.S. It works fine if I just install it directly, or if I use the .hddimg, > instead of trying to boot the live image from the .iso. > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto > [-- Attachment #2: Type: text/html, Size: 2036 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rootfs mounted read-only on Live USB (x86-64) 2016-06-03 9:54 ` Oleksandr Poznyak @ 2016-06-03 14:15 ` Dan O'Donovan 2016-06-03 15:33 ` Bruce Ashfield 0 siblings, 1 reply; 5+ messages in thread From: Dan O'Donovan @ 2016-06-03 14:15 UTC (permalink / raw) To: Oleksandr Poznyak; +Cc: yocto [-- Attachment #1: Type: text/plain, Size: 2584 bytes --] On 06/03/2016 10:54 AM, Oleksandr Poznyak wrote: > Hi, Hi Oleksandr > Check if "read-only-rootfs" feature is added to any of these variables either in your local.conf or your image bitbake recipe: > > Something like that: > > IMAGE_FEATURES = "read-only-rootfs" > > EXTRA_IMAGE_FEATURES += "read-only-rootfs" Thanks for your suggestion. I didn't find "read-only-rootfs" specified in the IMAGE_FEATURES in local.conf or elsewhere. I suspect it might be a different issue because it only affects the live-boot of the .iso image. If I install the .hddimage directly to the storage device instead, then it boots fine and the rootfs is read/write. [update] It looks like the problem was indeed the lack of aufs. I added this in conf/local.conf DISTRO_FEATURES_append = " aufs" and this in the kernel recipe KERNEL_FEATURES_append += "${@bb.utils.contains('DISTRO_FEATURES', 'aufs', ' features/aufs/aufs-enable.scc', '', d)}" and now the live USB image boots correctly with a read-write filesystem. Considering that the default images built for a generic x86-64 machine include a live-boot image (.iso) which is effectively broken, I assume the aufs feature (or another solution for the live-boot use case) should really be added by default for those builds as well. > > Thanks, > Oleksandr Poznyak! > > On Fri, Jun 3, 2016 at 12:06 PM, Dan O'Donovan <dan@emutex.com <mailto:dan@emutex.com>> wrote: > > Hi all > > Has anyone else noticed that the root file-system appears to be mounted read-only when booting a Live USB image from Yocto 2.1. > > This is on a sato build from the krogoth branch of poky and meta-intel, for a generic x86-64 machine (4.4 kernel). > > I'm transferring the resulting .iso image to a usb stick using 'dd', and then picking the 'boot' option at startup. > > As well as a bunch of errors about the read-only filesystem (e.g. failing to create files in /var and other locations), the desktop UI fails to load. > > This worked fine with Yocto 2.0. > > I have a hunch that it might be caused by a lack of aufs support. Is it possible that aufs patches were omitted from the x86 kernels in Yocto 2.1? > > Thanks, > -Dan > > P.S. It works fine if I just install it directly, or if I use the .hddimg, instead of trying to boot the live image from the .iso. > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> > https://lists.yoctoproject.org/listinfo/yocto > > [-- Attachment #2: Type: text/html, Size: 4961 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rootfs mounted read-only on Live USB (x86-64) 2016-06-03 14:15 ` Dan O'Donovan @ 2016-06-03 15:33 ` Bruce Ashfield 2016-06-03 15:34 ` Bruce Ashfield 0 siblings, 1 reply; 5+ messages in thread From: Bruce Ashfield @ 2016-06-03 15:33 UTC (permalink / raw) To: Dan O'Donovan, Oleksandr Poznyak; +Cc: yocto On 2016-06-03 10:15 AM, Dan O'Donovan wrote: > On 06/03/2016 10:54 AM, Oleksandr Poznyak wrote: >> Hi, > Hi Oleksandr >> Check if "read-only-rootfs" feature is added to any of these variables >> either in your local.conf or your image bitbake recipe: >> >> Something like that: >> >> IMAGE_FEATURES = "read-only-rootfs" >> >> EXTRA_IMAGE_FEATURES += "read-only-rootfs" > Thanks for your suggestion. I didn't find "read-only-rootfs" specified > in the IMAGE_FEATURES in local.conf or elsewhere. I suspect it might be > a different issue because it only affects the live-boot of the .iso > image. If I install the .hddimage directly to the storage device > instead, then it boots fine and the rootfs is read/write. > > [update] > It looks like the problem was indeed the lack of aufs. > I added this in conf/local.conf > DISTRO_FEATURES_append = " aufs" > and this in the kernel recipe > KERNEL_FEATURES_append += "${@bb.utils.contains('DISTRO_FEATURES', > 'aufs', ' features/aufs/aufs-enable.scc', '', d)}" > and now the live USB image boots correctly with a read-write filesystem. > > Considering that the default images built for a generic x86-64 machine > include a live-boot image (.iso) which is effectively broken, I assume > the aufs feature (or another solution for the live-boot use case) should > really be added by default for those builds as well. aufs is in the linux-yocto-4.1 and 4.4 kernels. It may be that the SRCREVs for older branches haven't been updated yet. commit ed2314d234ff26ed50342264e432392c8908c66b Author: Bruce Ashfield <bruce.ashfield@windriver.com> Date: Wed Jul 8 15:46:25 2015 -0400 aufs4: core support Integrating the core aufs4 support from: git://github.com/sfjro/aufs4-standalone.git Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Bruce >> >> Thanks, >> Oleksandr Poznyak! >> >> On Fri, Jun 3, 2016 at 12:06 PM, Dan O'Donovan <dan@emutex.com >> <mailto:dan@emutex.com>> wrote: >> >> Hi all >> >> Has anyone else noticed that the root file-system appears to be >> mounted read-only when booting a Live USB image from Yocto 2.1. >> >> This is on a sato build from the krogoth branch of poky and >> meta-intel, for a generic x86-64 machine (4.4 kernel). >> >> I'm transferring the resulting .iso image to a usb stick using >> 'dd', and then picking the 'boot' option at startup. >> >> As well as a bunch of errors about the read-only filesystem (e.g. >> failing to create files in /var and other locations), the desktop >> UI fails to load. >> >> This worked fine with Yocto 2.0. >> >> I have a hunch that it might be caused by a lack of aufs support. >> Is it possible that aufs patches were omitted from the x86 kernels >> in Yocto 2.1? >> >> Thanks, >> -Dan >> >> P.S. It works fine if I just install it directly, or if I use the >> .hddimg, instead of trying to boot the live image from the .iso. >> -- >> _______________________________________________ >> yocto mailing list >> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> >> https://lists.yoctoproject.org/listinfo/yocto >> >> > > > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rootfs mounted read-only on Live USB (x86-64) 2016-06-03 15:33 ` Bruce Ashfield @ 2016-06-03 15:34 ` Bruce Ashfield 0 siblings, 0 replies; 5+ messages in thread From: Bruce Ashfield @ 2016-06-03 15:34 UTC (permalink / raw) To: Dan O'Donovan, Oleksandr Poznyak; +Cc: yocto On 2016-06-03 11:33 AM, Bruce Ashfield wrote: > On 2016-06-03 10:15 AM, Dan O'Donovan wrote: >> On 06/03/2016 10:54 AM, Oleksandr Poznyak wrote: >>> Hi, >> Hi Oleksandr >>> Check if "read-only-rootfs" feature is added to any of these variables >>> either in your local.conf or your image bitbake recipe: >>> >>> Something like that: >>> >>> IMAGE_FEATURES = "read-only-rootfs" >>> >>> EXTRA_IMAGE_FEATURES += "read-only-rootfs" >> Thanks for your suggestion. I didn't find "read-only-rootfs" specified >> in the IMAGE_FEATURES in local.conf or elsewhere. I suspect it might be >> a different issue because it only affects the live-boot of the .iso >> image. If I install the .hddimage directly to the storage device >> instead, then it boots fine and the rootfs is read/write. >> >> [update] >> It looks like the problem was indeed the lack of aufs. >> I added this in conf/local.conf >> DISTRO_FEATURES_append = " aufs" >> and this in the kernel recipe >> KERNEL_FEATURES_append += "${@bb.utils.contains('DISTRO_FEATURES', >> 'aufs', ' features/aufs/aufs-enable.scc', '', d)}" >> and now the live USB image boots correctly with a read-write filesystem. >> >> Considering that the default images built for a generic x86-64 machine >> include a live-boot image (.iso) which is effectively broken, I assume >> the aufs feature (or another solution for the live-boot use case) should >> really be added by default for those builds as well. > > aufs is in the linux-yocto-4.1 and 4.4 kernels. It may be that the > SRCREVs for older branches haven't been updated yet. ah crap. I see you did find the aufs support, just that it wasn't enabled by the right images. Bruce > > > commit ed2314d234ff26ed50342264e432392c8908c66b > Author: Bruce Ashfield <bruce.ashfield@windriver.com> > Date: Wed Jul 8 15:46:25 2015 -0400 > > aufs4: core support > > Integrating the core aufs4 support from: > > git://github.com/sfjro/aufs4-standalone.git > > Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> > > > > Bruce > >>> >>> Thanks, >>> Oleksandr Poznyak! >>> >>> On Fri, Jun 3, 2016 at 12:06 PM, Dan O'Donovan <dan@emutex.com >>> <mailto:dan@emutex.com>> wrote: >>> >>> Hi all >>> >>> Has anyone else noticed that the root file-system appears to be >>> mounted read-only when booting a Live USB image from Yocto 2.1. >>> >>> This is on a sato build from the krogoth branch of poky and >>> meta-intel, for a generic x86-64 machine (4.4 kernel). >>> >>> I'm transferring the resulting .iso image to a usb stick using >>> 'dd', and then picking the 'boot' option at startup. >>> >>> As well as a bunch of errors about the read-only filesystem (e.g. >>> failing to create files in /var and other locations), the desktop >>> UI fails to load. >>> >>> This worked fine with Yocto 2.0. >>> >>> I have a hunch that it might be caused by a lack of aufs support. >>> Is it possible that aufs patches were omitted from the x86 kernels >>> in Yocto 2.1? >>> >>> Thanks, >>> -Dan >>> >>> P.S. It works fine if I just install it directly, or if I use the >>> .hddimg, instead of trying to boot the live image from the .iso. >>> -- >>> _______________________________________________ >>> yocto mailing list >>> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> >>> https://lists.yoctoproject.org/listinfo/yocto >>> >>> >> >> >> > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-06-03 15:34 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-06-03 9:06 rootfs mounted read-only on Live USB (x86-64) Dan O'Donovan 2016-06-03 9:54 ` Oleksandr Poznyak 2016-06-03 14:15 ` Dan O'Donovan 2016-06-03 15:33 ` Bruce Ashfield 2016-06-03 15:34 ` Bruce Ashfield
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.