-
Notifications
You must be signed in to change notification settings - Fork 75
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
Filesystem labels #189
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
49bf37f
to
bb00f5d
Compare
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>
bb00f5d
to
2b0bcfb
Compare
No description provided.