First commit to enable an environmental variable that points to current rootfs directory can be improved to avoid risk of selecting the wrong partition/path when user have added additional partitions to be used with for example containers.
Suggestion to use the same method as "image_name" in /src/init/vyos-router which also is less likely to select wrong path because the source will now be cmdline.