On Friday October 2, hdegoede@xxxxxxxxxx wrote: > Hi, > > There is no such thing in the initrd (a writable /var/run), but there is > a writable / (initrd == ramdisk), and mdadm will happily create /var/run > itself, if it would not do that, there would no issue. mdadm does not create directories (or at least not for the map file). So if /var/run does not exist, it will use a file in /dev. > > Although I do wonder how later, when we do have a writable /var/run, mdadm > decides which file to use. Once it has used /dev/.mdadm.map once it should > keep on using that. It always tries the first of /var/run/mdadm/map /var/run/mdadm.map /dev/.mdadm.map it will normally read, then write. So if /var/run doesn't exist, it will use /dev/.mdadm.map Once /var/run/mdadm exists, it will read from /dev/.mdadm.map write to /var/run/mdadm/map and from then on use /var/run/mdadm/map So if the initramfs really does not contain /var/run, then this aspect should "just work". NeilBrown -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html