Update build.sh
This commit is contained in:
5
build.sh
5
build.sh
@@ -1,15 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
mkdir -p ./linux
|
mkdir -p ./linux
|
||||||
#git clone --depth 1 https://github.com/torvalds/linux.git ./linux
|
git clone --depth 1 https://github.com/torvalds/linux.git ./linux
|
||||||
cat /boot/config-$(uname -r) > ./linux/.config
|
cat /boot/config-$(uname -r) > ./linux/.config
|
||||||
sed -i 's/CONFIG_SYSTEM_TRUSTED_KEYS=".*"/CONFIG_SYSTEM_TRUSTED_KEYS=""/' ./linux/.config
|
sed -i 's/CONFIG_SYSTEM_TRUSTED_KEYS=".*"/CONFIG_SYSTEM_TRUSTED_KEYS=""/' ./linux/.config
|
||||||
sed -i 's/CONFIG_SYSTEM_REVOCATION_KEYS=".*"/CONFIG_SYSTEM_REVOCATION_KEYS=""/' ./linux/.config
|
sed -i 's/CONFIG_SYSTEM_REVOCATION_KEYS=".*"/CONFIG_SYSTEM_REVOCATION_KEYS=""/' ./linux/.config
|
||||||
cat ./containerfile | podman build --volume /lib/modules:/lib/modules:z -f - -t kernelbuild:latest .
|
cat ./containerfile | podman build --volume /lib/modules:/lib/modules:z -f - -t kernelbuild:latest .
|
||||||
nice -n 10 /usr/bin/podman run --volume /lib/modules:/lib/modules:z --volume ./linux:/linux kernelbuild:latest
|
nice -n 10 /usr/bin/podman run --volume /lib/modules:/lib/modules:z --volume ./linux:/linux kernelbuild:latest
|
||||||
dir=$(dirname "$0")
|
|
||||||
echo $dir
|
|
||||||
cd $dir
|
|
||||||
rm -rf initram/
|
rm -rf initram/
|
||||||
mkdir -p initram
|
mkdir -p initram
|
||||||
mkdir -p initram/{bin,dev,etc,lib,proc,sbin,sys,tmp,usr}
|
mkdir -p initram/{bin,dev,etc,lib,proc,sbin,sys,tmp,usr}
|
||||||
|
|||||||
Reference in New Issue
Block a user