How to rebuild firmlink from backup-up volume group

Recently we've been working on file-based backups on macOS 10.15.7. When I finish the system volume group backup, including

  • The system role volume, default volume name 'Untitled' usually
  • The data role volume, default volume name 'Untitled - Data' usually

Next step, I launch Migration Assistant and choose "From a Mac, Time Machine backup or startup disk" to restore volume data.

But when I select the backed-up system role volume, a warning message poped up and tell me "Volume contains a macOS or OS X installation which may be damaged".   I try to rebuild folder firmlink from /usr/share/firmlinks before backing up data role volume, like the following steps:

  1. Add SF_FIRMLINK by chflags to folders on system role volume
  2. Add extened attribute com.apple.fs.firmlink which value is target file name
  3. Make sure other attributes(creation time, permission, owner, group, etc) are the same between source and destination

But it still doesn't work (I check inode number on backed-up system role volume by "is -ailO").  

I search some informations and find this blog:

  • https://bombich.com/blog/2020/05/27/bug-in-macos-10.15.5-impacts-bootable-backups-weve-got-you-covered.

So my question is "How do I recover firmlink between backed-up system role volume and data role volume?"   Thanks a lot

How to rebuild firmlink from backup-up volume group
 
 
Q