Skip to content

Commit 77990a6

Browse files
author
Prakash Surya
authored
Revert "TOOL-24368 Use grub packages provided by Ubuntu" (#307)
PR URL: https://www.github.com/delphix/linux-pkg/pull/307
1 parent e865678 commit 77990a6

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

package-lists/build/main.pkgs

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ dwarves
1919
fio
2020
fluentd-gems
2121
gdb-python
22+
grub2
2223
host-jdks
2324
libkdumpfile
2425
make-jpkg

packages/grub2/config.sh

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright 2020 Delphix
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# shellcheck disable=SC2034
18+
19+
DEFAULT_PACKAGE_GIT_URL="https://github.com/delphix/grub2"
20+
21+
UPSTREAM_GIT_URL=https://git.launchpad.net/ubuntu/+source/grub2
22+
UPSTREAM_GIT_BRANCH="applied/ubuntu/${UBUNTU_DISTRIBUTION}-updates"
23+
24+
SKIP_COPYRIGHTS_CHECK=true
25+
26+
#
27+
# Install build dependencies for the package.
28+
#
29+
function prepare() {
30+
logmust install_build_deps_from_control_file
31+
}
32+
33+
#
34+
# Build the package.
35+
#
36+
function build() {
37+
logmust dpkg_buildpackage_default
38+
}
39+
40+
#
41+
# Hook to fetch upstream package changes and merge into our tree.
42+
#
43+
function update_upstream() {
44+
logmust update_upstream_from_git
45+
}

0 commit comments

Comments
 (0)