UUID and LABEL support for "changes" and "from_dev"
Posted: 06 Jun 2011, 00:19
Hello,
Such a feature can be useful in the cases when porteus is installed on a USB memory stick and changes is configured on the second partition.
It can be used i.e. changes=/dev/sdb2 cheatcode but it shall fail if the system has more than one (or none) harddisks - the USB memory stick does not get sdb.
Using changes=UUID:xxxx-xxx-xxx... or changes=LABEL:porteus-changes cheat code will select the correct device.
from_dev=UUID:xxx and from_dev=LABEL:porteusonstick address similar issue when porteus is booted from USB stick but select i.e. the CDROM for porteus data.
I have created a patch for linuxrc that implements these features.
I can be downloaded from there.
I would be happy if the patch is included in the next release.
BTW, it seams the changes partition is not unmounted correctly on shutting down - the file system (ext2) remains "dirty" or, in case of EXT3 the journal has to be rebuilt on the next mount. The problem appears both when changes=/dev/sdb2 and changes=UUID:xxx is used. Is that a bug or I am missing something?
Such a feature can be useful in the cases when porteus is installed on a USB memory stick and changes is configured on the second partition.
It can be used i.e. changes=/dev/sdb2 cheatcode but it shall fail if the system has more than one (or none) harddisks - the USB memory stick does not get sdb.
Using changes=UUID:xxxx-xxx-xxx... or changes=LABEL:porteus-changes cheat code will select the correct device.
from_dev=UUID:xxx and from_dev=LABEL:porteusonstick address similar issue when porteus is booted from USB stick but select i.e. the CDROM for porteus data.
I have created a patch for linuxrc that implements these features.
I can be downloaded from there.
I would be happy if the patch is included in the next release.
BTW, it seams the changes partition is not unmounted correctly on shutting down - the file system (ext2) remains "dirty" or, in case of EXT3 the journal has to be rebuilt on the next mount. The problem appears both when changes=/dev/sdb2 and changes=UUID:xxx is used. Is that a bug or I am missing something?