0

In a Linux system consisting of a bootloader, the kernel and an initramfs (no block devices, no other root filesystem):

Is it possible to make the initramfs read-only once expanded into memory?

Axel Fontaine
  • 202
  • 2
  • 10
  • Probably, but why? I suspect the kernel itself doesn't care one way or the other. But you almost certainly need to start some software after loading the kernel, and the software you start may need write access. – Zoredache Jan 07 '13 at 23:13

1 Answers1

1

You could try giving the remount option a whirl.

mount -o remount,ro /

Do pay heed to Zoredache's comment. Just because you can doesn't mean it won't go terribly, horribly wrong.

Andrew B
  • 32,588
  • 12
  • 93
  • 131