[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /sbin/losetup read only



Hi,

Thanks for the answer,

You are right about the three things in a default live cd behavior.

Mounting filesystem.squashfs in read-only mode is not a problem, but when you want to mount something like home-rw.ext2, that doesn't do the trick.

Does this mean that read-only mode is set to default in /sbin/losetup source code ?

Two things seem to me a bit strange :
- busy box losetup doesn't mount by default in read-only mode.
- calling losetup from the booted environment doesn't mount by default in read-only mode.

Regards,

Olivier


Daniel Baumann wrote:


Olivier wrote:
Why does /sbin/losetup mount /dev/loop* readonly when called from
initramfs script ?

because

  * you cannot write to a fixed image anyway

  * not on a read-only media anyway

  * the purpose of a live system is to be (by default behaviour) not
    persistent.

Regards,
Daniel



Reply to: