Skip to content
Snippets Groups Projects
  • Robert Marko's avatar
    7a181a65
    treewide: fix initramfs detection · 7a181a65
    Robert Marko authored
    
    Commit "initramfs: switch to tmpfs to fix ujail" switched initramfs to
    now use tmpfs, it causes $(rootfs_type) to now return tmpfs when
    running initramfs image instead of being empty.
    
    This broke initramfs detection which is required so that when installing
    on MikroTik devices firmware partition would first get erased fully
    before writing.
    
    So, lets test for $(rootfs_type) returning "tmpfs" instead.
    
    Fixes: 7fd3c681 ("initramfs: switch to tmpfs to fix ujail)
    
    Signed-off-by: default avatarRobert Marko <robimarko@gmail.com>
    7a181a65
    History
    treewide: fix initramfs detection
    Robert Marko authored
    
    Commit "initramfs: switch to tmpfs to fix ujail" switched initramfs to
    now use tmpfs, it causes $(rootfs_type) to now return tmpfs when
    running initramfs image instead of being empty.
    
    This broke initramfs detection which is required so that when installing
    on MikroTik devices firmware partition would first get erased fully
    before writing.
    
    So, lets test for $(rootfs_type) returning "tmpfs" instead.
    
    Fixes: 7fd3c681 ("initramfs: switch to tmpfs to fix ujail)
    
    Signed-off-by: default avatarRobert Marko <robimarko@gmail.com>