canonical / core-initrd

initrd implementation in ubuntu core
https://ubuntu.com/core/docs
GNU General Public License v3.0
10 stars 29 forks source link

factory: change checks for UC/classic #265

Open alfonsosanchezbeato opened 2 months ago

alfonsosanchezbeato commented 2 months ago

In a near future snap-bootstrap will not mount the base anymore in /run/mnt/base and instead it will create a unit to mount it directly to /sysroot. Therefore, change the checks to know if this is UC or classic to finding out if /run/mnt/data/system-data exists instead of looking at /run/mnt/base.