Skip to content
  • Thomas Haller's avatar
    initrd: add .nmconnection extension when writing keyfiles · 4ca7fa7f
    Thomas Haller authored
    initrd does not use keyfile API from "src/settings/plugins/keyfile",
    hence it does not use nms_keyfile_utils_escape_filename() to add
    the ".nmconnection" file extension.
    
    I think that is problematic, because it also misses escapings which
    are necessary so that NetworkManager will accept the file.
    
    Anyway, the proper solution here would be to move the keyfile utility
    functions to libnm-core, alongside base keyfile API. That way, it
    could be used by initrd generator.
    
    For now, just dirty fix the generated filename.
    
    Fixes: 648c256b
    4ca7fa7f