Skip to content

Commit

Permalink
nvm more stuff lol
Browse files Browse the repository at this point in the history
  • Loading branch information
cinnamonwolfy committed Apr 18, 2022
1 parent 34e899d commit d1e6125
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 4 additions & 3 deletions compile-script
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,6 @@ compile_rootfs(){
sudo mknod $output_rootfs/dev/console c 5 1
sudo mknod $output_rootfs/dev/tty c 5 0
sudo mknod $output_rootfs/dev/null c 1 3
cp -rv $output_rootfs/opt $output/header-dir
rm -rfv $output/rootfs/opt/*
}

compile_devrfs(){
Expand All @@ -294,7 +292,7 @@ compile_devrfs(){
mkdir build
cd build
../configure --prefix=/usr --bindir=/opt/bin --datarootdir=/opt/share --with-sysroot=/ \
--disable-multilib --host=$arch-pocket-linux-gnu
--with-native-system-header-dir=/opt/include --disable-multilib --host=$arch-pocket-linux-gnu

make -j$threads
make install DESTDIR=$output_rootfs
Expand Down Expand Up @@ -330,6 +328,9 @@ compile_kernel(){
# clean_rootdir
# fi

cp -rv $output_rootfs/opt $output/header-dir
rm -rfv $output/rootfs/opt/*

cd $output_rootfs
find . | cpio -H newc -ov > $output/rootfs.cpio

Expand Down
7 changes: 7 additions & 0 deletions initramfs-init
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
/bin/busybox --install -s
dmesg -n 1

device_scan(){
devices = $(blkid | cut -d: -f1)

}

echo "Welcome to PortaLinux v0.03, (c) 2022 pocketlinux32"
printf "Pre-Init. Running on Linux $(uname -m) $(uname -r)\n\n"

Expand All @@ -15,6 +20,8 @@ printf "Creating device nodes..."
echo mdev -s > /proc/sys/kernel/hotplug
printf "Done.\n\n"

echo "Device scanning is not supported yet"

echo "Running init..."

exec /sbin/init

0 comments on commit d1e6125

Please sign in to comment.