mirror of
https://github.com/pygos/build.git
synced 2024-11-22 02:59:47 +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
|
||||
nftables
|
||||
dhcpcd
|
||||
linux
|
||||
|
|
|
@ -11,3 +11,4 @@ kbd
|
|||
firmware-rpi3
|
||||
dhcpcd
|
||||
linux-firmware-rpi3
|
||||
linux-rpi3
|
||||
|
|
|
@ -30,7 +30,10 @@ deploy() {
|
|||
local SOURCE="$1"
|
||||
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() {
|
||||
|
|
|
@ -32,7 +32,10 @@ deploy() {
|
|||
local SOURCE="$1"
|
||||
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() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
DEPENDS="rootfs linux"
|
||||
DEPENDS="rootfs"
|
||||
|
||||
build() {
|
||||
local SOURCE="$1"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
DEPENDS="rootfs linux-rpi3 boot-rpi3"
|
||||
DEPENDS="rootfs boot-rpi3"
|
||||
|
||||
build() {
|
||||
local SOURCE="$1"
|
||||
|
|
|
@ -82,6 +82,13 @@ build() {
|
|||
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#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() {
|
||||
|
|
Loading…
Reference in a new issue