Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filesystem labels #189

Merged
merged 2 commits into from
Apr 27, 2018
Merged

Filesystem labels #189

merged 2 commits into from
Apr 27, 2018

Conversation

floion
Copy link
Collaborator

@floion floion commented Apr 11, 2018

No description provided.

Copy link
Contributor

@telphan telphan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested

instead of physical partition number for the kernel
cmdline root parameter.

Signed-off-by: Theonlyzby <theonlyzby@gmail.com>
cp /mnt/boot/cmdline.txt /mnt/boot/cmdline.txt.new
sed -i "s#mmcblk0p.#mmcblk0p$new_part_idx#g" /mnt/boot/cmdline.txt.new
sed -i "s#root=LABEL=[^ ]*#root=LABEL=$new_root_filesystem_label#g" /mnt/boot/cmdline.txt.new
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should match rooot=, so old version will updated properly to this verison.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please write what the sed line you think should be exactly?

Copy link
Contributor

@telphan telphan Apr 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be something like this:
s#root=.* #root=LABEL=$new_root_filesystem_label#g

use filesystem LABEL instead of physical partition number

We now have the kernel cmdline root parameter using filesystem LABEL
instead of physical partition number, so we need this hostapp update hook
use LABEL too when doing the rootfs switch.

Signed-off-by: Theonlyzby <theonlyzby@gmail.com>
@floion floion merged commit 7425af1 into master Apr 27, 2018
@floion floion deleted the filesystem_labels branch April 27, 2018 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants