mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
Handle boot files via regular rootfs package machanisms
Just install the kernel package to the rootfs /boot directory and add a step to the rootfs package to move /boot data out of the squasfs image. Add linux package as regular dependency to the rootfs. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
4397267c37
commit
39c0c2c98d
7 changed files with 21 additions and 6 deletions
|
@ -8,3 +8,4 @@ btrfs-progs
|
||||||
dosfstools
|
dosfstools
|
||||||
nftables
|
nftables
|
||||||
dhcpcd
|
dhcpcd
|
||||||
|
linux
|
||||||
|
|
|
@ -11,3 +11,4 @@ kbd
|
||||||
firmware-rpi3
|
firmware-rpi3
|
||||||
dhcpcd
|
dhcpcd
|
||||||
linux-firmware-rpi3
|
linux-firmware-rpi3
|
||||||
|
linux-rpi3
|
||||||
|
|
|
@ -30,7 +30,10 @@ deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local DEPLOY="$2"
|
local DEPLOY="$2"
|
||||||
|
|
||||||
install -m 755 "arch/arm/boot/zImage" "$DEPLOY/vmlinuz"
|
mkdir -p "$DEPLOY/boot"
|
||||||
|
cp "arch/arm/boot/zImage" "$DEPLOY/boot/vmlinuz"
|
||||||
|
|
||||||
|
echo "boot/vmlinuz m 555 0 0" > "$DEPLOY/rootfs_files.txt"
|
||||||
}
|
}
|
||||||
|
|
||||||
check_update() {
|
check_update() {
|
||||||
|
|
|
@ -32,7 +32,10 @@ deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local DEPLOY="$2"
|
local DEPLOY="$2"
|
||||||
|
|
||||||
install -m 755 "arch/$LINUX_CPU/boot/$LINUX_TGT" "$DEPLOY/vmlinuz"
|
mkdir -p "$DEPLOY/boot"
|
||||||
|
cp "arch/$LINUX_CPU/boot/$LINUX_TGT" "$DEPLOY/boot/vmlinuz"
|
||||||
|
|
||||||
|
echo "boot/vmlinuz m 555 0 0" > "$DEPLOY/rootfs_files.txt"
|
||||||
}
|
}
|
||||||
|
|
||||||
check_update() {
|
check_update() {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
DEPENDS="rootfs linux"
|
DEPENDS="rootfs"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
DEPENDS="rootfs linux-rpi3 boot-rpi3"
|
DEPENDS="rootfs boot-rpi3"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
|
|
|
@ -82,6 +82,13 @@ build() {
|
||||||
sed -i 's#etc/#cfg/preserve/etc/#g' "$DEPLOY/pseudo"
|
sed -i 's#etc/#cfg/preserve/etc/#g' "$DEPLOY/pseudo"
|
||||||
sed -i 's#var/lib/#cfg/preserve/var_lib/#g' "$DEPLOY/pseudo"
|
sed -i 's#var/lib/#cfg/preserve/var_lib/#g' "$DEPLOY/pseudo"
|
||||||
sed -i 's#usr/#cfg/preserve/usr/#g' "$DEPLOY/pseudo"
|
sed -i 's#usr/#cfg/preserve/usr/#g' "$DEPLOY/pseudo"
|
||||||
|
|
||||||
|
# don't add stuff for the boot partition to the squashfs image
|
||||||
|
mv ${PKGBUILDDIR}/boot/* "$DEPLOY"
|
||||||
|
|
||||||
|
grep -v "^boot/" "$DEPLOY/pseudo" > "$DEPLOY/pseudo.temp"
|
||||||
|
mv "$DEPLOY/pseudo.temp" "$DEPLOY/pseudo"
|
||||||
|
echo "boot m 750 0 0" >> "$DEPLOY/pseudo"
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
|
|
Loading…
Reference in a new issue