Skip to content

Commit

Permalink
Use product name in distributor
Browse files Browse the repository at this point in the history
Use product name (for eg openSUSE 12.2) in distributor instead
of default "openSUSE" to get better idea on what is being
installed, which will show on grub2's menu and UEFI boot manager.
  • Loading branch information
WenhuaChang committed Jul 11, 2012
1 parent a8e0dab commit 763e500
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/BootGRUB2.ycp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import "StorageDevices";
import "Pkg";
import "HTML";
import "Initrd";
import "Product";

// includes
// for shared some routines with grub
Expand Down Expand Up @@ -160,6 +161,7 @@ global define void Propose () {
resume = BootStorage::Dev2MountByDev(resume);
BootCommon::globals["append"] = BootArch::DefaultKernelParams (resume);
BootCommon::globals["append_failsafe"] = BootArch::FailsafeKernelParams ();
BootCommon::globals["distributor"] = Product::name;

// Let grub2 scripts detects correct root= for us. :)
// BootCommon::globals["root"] = BootStorage::Dev2MountByDev(BootStorage::RootPartitionDevice);
Expand Down
2 changes: 2 additions & 0 deletions src/modules/BootGRUB2EFI.ycp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import "StorageDevices";
import "Pkg";
import "HTML";
import "Initrd";
import "Product";

// includes
// for shared some routines with grub
Expand Down Expand Up @@ -153,6 +154,7 @@ global define void Propose () {
resume = BootStorage::Dev2MountByDev(resume);
BootCommon::globals["append"] = BootArch::DefaultKernelParams (resume);
BootCommon::globals["append_failsafe"] = BootArch::FailsafeKernelParams ();
BootCommon::globals["distributor"] = Product::name;

// Let grub2 scripts detects correct root= for us. :)
// BootCommon::globals["root"] = BootStorage::Dev2MountByDev(BootStorage::RootPartitionDevice);
Expand Down

0 comments on commit 763e500

Please sign in to comment.