mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-17 00:35:25 +01:00
Support reboot in non-chroot modes using grub and an init script
We use grub-2.06 as 2.12 has some packaging issues, and can't be built in live-bootstrap for now.
This commit is contained in:
parent
eb3414c2da
commit
6d26855dc6
9 changed files with 168 additions and 2 deletions
35
steps/grub-2.06/pass1.sh
Normal file
35
steps/grub-2.06/pass1.sh
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# SPDX-FileCopyrightText: 2024 Gábor Stefanik <netrolller.3d@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Remove pregenerated gnulib files
|
||||
pushd ../gnulib-d271f86
|
||||
rm lib/unictype/ctype*.h
|
||||
rm lib/unicase/tolower.h
|
||||
popd
|
||||
|
||||
. ../../import-gnulib.sh
|
||||
|
||||
for patchname in fix-base64 fix-null-deref fix-null-state-deref fix-regcomp-uninit-token \
|
||||
fix-regexec-null-deref fix-uninit-structure fix-unused-value fix-width no-abort; do
|
||||
patch -d grub-core/lib/gnulib -p2 < "grub-core/lib/gnulib-patches/$patchname.patch"
|
||||
done
|
||||
|
||||
./autogen.sh
|
||||
|
||||
cp -a INSTALL INSTALL.grub
|
||||
autoreconf-2.69 -vif
|
||||
mv INSTALL.grub INSTALL
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
CFLAGS="-Wno-error" ./configure --prefix="${PREFIX}" --sbindir="${PREFIX}/bin" --build=i686-pc-linux-musl
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
rm "${DESTDIR}${PREFIX}/share/info/dir"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue