[Bug 623375] Re: Skipping the bootloader installation when creating rootfs or installation media

Colin Watson cjwatson at canonical.com
Tue Aug 24 13:17:11 UTC 2010


run_bootloader looks like this:

# Invoke bootloader
run_bootloader()
{
        # invoke policy conformant bootloader hooks
        if [ -d /etc/initramfs/post-update.d/ ]; then
                run-parts --arg=${version} --arg=${initramfs} \
                        /etc/initramfs/post-update.d/
                return 0
        fi

        # FIXME: to be removed postsqueeze release
[...]
        if flash-kernel --supported >/dev/null 2>&1; then
                flash-kernel ${version}
                return 0
        fi
}

Thus, I think that if you simply have flash-kernel create a
/etc/initramfs/post-update.d/flash-kernel script (this could be done in
Debian - see http://lists.debian.org/debian-kernel/2010/07/msg00078.html
for the policy draft), then you could have that script honour some
environment variable and that would be all you need.

-- 
Skipping the bootloader installation when creating rootfs or installation media
https://bugs.launchpad.net/bugs/623375
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to initramfs-tools in ubuntu.




More information about the kernel-bugs mailing list