All of lore.kernel.org
 help / color / mirror / Atom feed
* Is it possible to run a read-only fs without IMAGE_FEATURE = "read-only-rootfs"
@ 2021-12-13 14:40 Beek, Léon van de
  2021-12-13 17:21 ` [yocto] " Quentin Schulz
  0 siblings, 1 reply; 2+ messages in thread
From: Beek, Léon van de @ 2021-12-13 14:40 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 817 bytes --]

Dear all,

Currently I have created an image which upon boot mounts my rootfs as readonly in an overlay with my data partition. I set out to change the FS type of my rootfs to something that is actuall read-only like squashfs, however I am getting a kernel panic whenever I boot saying:

"Not syncing: vfs: Unable to mount root fs on unknown-blick(179,2)"

The steps I took to convert to a read-only rootfs:

  *   Change -fstype in .wks file to squashfs
  *   Changed IMAGE_FSTYPE= "squashfs wic.bz2", in local.conf, however I do not believe this is necessary actually

Are there steps I am missing? I believe that IMAGE_FEATURE = "read-only-rootfs" should not be necessary as I am mounting the rootfs in an overlay before starting /sbin/init , but I might be wrong.

Kind regards,

Léon van de Beek

[-- Attachment #2: Type: text/html, Size: 5867 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [yocto] Is it possible to run a read-only fs without IMAGE_FEATURE = "read-only-rootfs"
  2021-12-13 14:40 Is it possible to run a read-only fs without IMAGE_FEATURE = "read-only-rootfs" Beek, Léon van de
@ 2021-12-13 17:21 ` Quentin Schulz
  0 siblings, 0 replies; 2+ messages in thread
From: Quentin Schulz @ 2021-12-13 17:21 UTC (permalink / raw)
  To: yocto, Beek, Léon van de, yocto

Hi Léon,

On December 13, 2021 3:40:05 PM GMT+01:00, "Beek, Léon van de" <l.v.d.beek@student.tue.nl> wrote:
>Dear all,
>
>Currently I have created an image which upon boot mounts my rootfs as readonly in an overlay with my data partition. I set out to change the FS type of my rootfs to something that is actuall read-only like squashfs, however I am getting a kernel panic whenever I boot saying:
>
>"Not syncing: vfs: Unable to mount root fs on unknown-blick(179,2)"
>
>The steps I took to convert to a read-only rootfs:
>
>  *   Change -fstype in .wks file to squashfs
>  *   Changed IMAGE_FSTYPE= "squashfs wic.bz2", in local.conf, however I do not believe this is necessary actually
>

Did you check that your kernel actually supports squashfs as rootfs? There is a Kconfig option for it IIRC.

>Are there steps I am missing? I believe that IMAGE_FEATURE = "read-only-rootfs" should not be necessary as I am mounting the rootfs in an overlay before starting /sbin/init , but I might be wrong.
>

Since it's an image feature, it's not going to impact anything outside of the image recipe but I don't know exactly what this is doing from memory.

Cheers,
Quentin

>Kind regards,
>
>Léon van de Beek


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-13 17:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13 14:40 Is it possible to run a read-only fs without IMAGE_FEATURE = "read-only-rootfs" Beek, Léon van de
2021-12-13 17:21 ` [yocto] " Quentin Schulz

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.