Add kernel commandline configuration support
/etc/default/flash-kernel is added with a LINUX_KERNEL_CMDLINE variable that can optional be used in u-boot bootscripts. This command line is generated using the distribution default (defaults for Debian and Ubuntu are provided), and will incorporate any user-provided commandline arguments provided at install time. This setting is configured via debconf, so can be overridden in expert mode by the user. Most of this logic is heavily leveraged from grub2's packaging. Bootscripts can incorporate this setting by adding the @@LINUX_KERNEL_CMDLINE@@ macro. For example, a simple such bootscript might look like: setenv bootargs '@@LINUX_KERNEL_CMDLINE@@' ext4load scsi 0 ${kernel_addr_r} vmlinuz ext4load scsi 0 ${ramdisk_addr_r} initrd.gz bootz ${kernel_addr_r} ${ramdisk_addr_r}
parent
0307e53c
Please register or sign in to comment