permission changes.
This commit is contained in:
@@ -5,4 +5,4 @@ minimal dependencies.
|
|||||||
|
|
||||||
kernel and subsystems are/will be built in a rootless containers.
|
kernel and subsystems are/will be built in a rootless containers.
|
||||||
|
|
||||||
start with ./build.sh
|
start with ./scripts/build_everything.sh
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ echo $dir
|
|||||||
cd $dir
|
cd $dir
|
||||||
./install_dependencies.sh
|
./install_dependencies.sh
|
||||||
./build_kernel.sh
|
./build_kernel.sh
|
||||||
./build_filesystem.sh
|
|
||||||
./build_initramfs.sh
|
./build_initramfs.sh
|
||||||
|
./build_filesystem.sh
|
||||||
./build_image.sh
|
./build_image.sh
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,21 +1,28 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ "$(id -u)" -ne 0 ]; then
|
if [ "$(id -u)" -ne 0 ]; then
|
||||||
echo "switching from $(id -un) to root"
|
echo "switching from $(id -un) to root"
|
||||||
exec sudo "$0" "$@"
|
exec sudo "$0" "$@"
|
||||||
fi
|
fi
|
||||||
|
set -e
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
DIR="$(dirname "$0")"
|
DIR="$(dirname "$0")"
|
||||||
cd ..
|
cd ..
|
||||||
echo $PWD
|
echo $PWD
|
||||||
if [ ! -d "./outputs/root" ]; then
|
|
||||||
|
if [ ! -d ./outputs/root/bin ]; then
|
||||||
|
rm -rf './outputs/root'
|
||||||
mkdir -p ./outputs/root/
|
mkdir -p ./outputs/root/
|
||||||
debootstrap noble ./outputs/root http://archive.ubuntu.com/ubuntu
|
debootstrap noble ./outputs/root https://us.archive.ubuntu.com/ubuntu
|
||||||
fi
|
fi
|
||||||
rm -rf './outputs/chroot'
|
rm -rf './outputs/chroot'
|
||||||
mkdir -p ./outputs/chroot/
|
mkdir -p ./outputs/chroot/
|
||||||
rsync -av ./outputs/root/ ./outputs/chroot/
|
rsync -av ./outputs/root/ ./outputs/chroot/
|
||||||
mkdir -p ./outputs/chroot/proc
|
mkdir -p ./outputs/chroot/proc
|
||||||
|
|
||||||
|
if mountpoint -q "./outputs/chroot/proc/"; then
|
||||||
|
umount -lf "./outputs/chroot/proc/"
|
||||||
|
fi
|
||||||
mount --bind /proc ./outputs/chroot/proc
|
mount --bind /proc ./outputs/chroot/proc
|
||||||
cp ./config/filesystem_chroot_install.sh ./outputs/chroot/filesystem_chroot_install.sh
|
cp ./config/filesystem_chroot_install.sh ./outputs/chroot/filesystem_chroot_install.sh
|
||||||
chmod +x ./outputs/chroot/filesystem_chroot_install.sh
|
chmod +x ./outputs/chroot/filesystem_chroot_install.sh
|
||||||
|
|||||||
@@ -5,8 +5,9 @@ cd ..
|
|||||||
echo $PWD
|
echo $PWD
|
||||||
echo "cleaning filesystem and creating initram directories"
|
echo "cleaning filesystem and creating initram directories"
|
||||||
rm -rf ./dependencies/initram/
|
rm -rf ./dependencies/initram/
|
||||||
mkdir -p ./dependencies/
|
|
||||||
mkdir -p ./outputs/
|
mkdir -p ./outputs/
|
||||||
|
mkdir -p ./dependencies/
|
||||||
|
mkdir -p ./dependencies/initram/
|
||||||
mkdir -p ./dependencies/initram/{bin,dev,etc,lib,proc,sbin,sys,tmp,usr}
|
mkdir -p ./dependencies/initram/{bin,dev,etc,lib,proc,sbin,sys,tmp,usr}
|
||||||
mkdir -p ./dependencies/initram/usr/{bin,sbin}
|
mkdir -p ./dependencies/initram/usr/{bin,sbin}
|
||||||
mkdir -p ./dependencies/initram/etc/{bin,sbin}
|
mkdir -p ./dependencies/initram/etc/{bin,sbin}
|
||||||
|
|||||||
@@ -7,5 +7,7 @@ set -e
|
|||||||
list="kpartx podman debootstrap "
|
list="kpartx podman debootstrap "
|
||||||
apt update
|
apt update
|
||||||
for item in $list; do
|
for item in $list; do
|
||||||
apt list --installed $item 2>/dev/null || sudo apt-get install -y $item
|
apt install -y $item
|
||||||
done
|
done
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
find . -type f -name "*" -exec chmod +x {} +
|
||||||
|
|||||||
Reference in New Issue
Block a user