ChimeraOS / frzr

A deployment and automatic update mechanism for operating systems
MIT License
59 stars 14 forks source link

Migration support #32

Closed Samsagax closed 1 year ago

Samsagax commented 1 year ago

Why

Look into #22

How

frzr will look into the recently installed image and run .migration files under ${SUBVOL}/usr/lib/frzr.d/. Those are text files that can be read by bash and define functions to run in the current installation. The first argument of the function is the path for the $MOUNT_PATH and the second is $SUBVOL in case that is needed.

Note: Some inspiration is taken from pacman .install files.

Possible fucntions in a migration file: Planning on adding pre_install and post_install functions.