Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -192,20 +192,18 @@ generate_installed_config() | |||
# Extract the kernel and initrd from git | ||||
extract_kernel "${dir}/live" "${flavour}" "" "${git_repo}" "${git_revision}" || return 1 | ||||
|
||||
cmdline_has noescape && noescape="noescape 1" | ||||
|
||||
# Generate global extlinux config file | ||||
cat<<EOF > ${dir}/boot/extlinux/extlinux.conf | ||||
default linux | ||||
prompt 0 | ||||
include linux.cfg | ||||
EOF | ||||
|
||||
# Generate config entry to boot our selected flavour | ||||
cat<<EOF > ${dir}/boot/extlinux/linux.cfg | ||||
${noescape} | ||||
label linux | ||||
linux /live/vmlinuz | ||||
append initrd=/live/initrd.img ${bootparams} | ||||
linux /live/vmlinuz | ||||
append initrd=/live/initrd.img ${bootparams} | ||||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
matthijskooijman
Member
|
cat<<EOF > ${dir}/boot/extlinux/extlinux.conf |
The append line as we can see here is pretty darn wide http://imgur.com/WqOQc
It's not worth re-doing for some whitespace, is it? :)
I was wondering if one get git rid of the default and label lines. didn't take the time to test.
This comment has been minimized.
This comment has been minimized.
Sorry, something went wrong.
matthijskooijman
Nov 28, 2012
Member
It's fairly trivial to re-add the spaces with commit --amend or rebase, of course (and IMHO they add a bit of clarity to the structure of the file, but with just a single entry, it's not very important). Feel free to leave it at this, I know I am a nitpick for these things ;-p
Why did these spaces have to go? IMHO they add value and removing them clutters the commit.