wic:generic:x86-64: Update kernel cmdline parameter when bootlower with grub #581
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains two commits.
commit: fc5cd6f
This commit added ADDITIONAL_KERNEL_CMDLINE variable to customize kernel cmdline.
Use ADDITIONAL_KERNEL_CMDLINE variable to append kernel cmdline. This variable is used in meta-isar/scripts/lib/wic/canned-wks/installer-efi.wks.in and meta-isar/recipes-core/images/isar-image-installer.bb so we use same variable.
commit: bf7050c
This commit added "rw" option in the kernel cmdline to solve following issue.
Without rw option, rootfs will be mounted read only first, the re-mount with read/write option.
In this case, firstboot which is run at fisrt time, will run on ro rootfs. In the result, some firstboot process fails because it cannot create symbolic link onto the rootfs.
Current problem
In the kernel cmdline, rw option is not set.
The firstboot process couldn't create symbolic link file so that systemd-networkd is not running even though preset is enabeld.
Test
qemu command line is here.
Checking rw option
Checking additional kernel cmdline options
Test Result
Test result of Checking rw option
rw option is set.
systemd-networkd is running.
Test result of Checking additional kernel cmdline options
ealryprintk option is set.