add a few scripts and a few new manuals

This commit is contained in:
Ohio2 2021-10-06 20:09:46 +02:00
parent 9dce5b0a68
commit edac8c6141
Signed by: Ohio2
GPG key ID: 2746D0A9E4F21E80
6 changed files with 36 additions and 2 deletions

View file

@ -0,0 +1,12 @@
#!/bin/sh
mount -t proc /proc $1/proc
mount -t sysfs /sys $1/sys
mount -o bind /dev $1/dev
mount -o bind /run $1/run
mount -o bind /sys/firmware/efi/efivars $1/sys/firmware/efi/efivars
cp /etc/resolv.conf $1/etc/resolv.conf
export MAKEFLAGS="-j$(nproc)"
export CFLAGS="-O2 -pipe -march-native"
export CXXFALGS="${CFLAGS}"
chroot $1 /bin/sh

4
man/chroot-al.1.md Normal file
View file

@ -0,0 +1,4 @@
chroot-al(1)
# Alnux Chroot
Alnux chroot serves a simple purpose, portable to any system;
chroot into a system with rebinded system directories.

View file

@ -3,17 +3,25 @@ function clean(){
set -x
rm aps.8
rm alnux-pkg-standard.7
rm sel.7
rm repo.7
rm mkinitramfs.8
rm chroot-al.1
}
function scdocbuild(){
set -x
scdoc < aps.8.md > aps.8
scdoc < alnux-pkg-standard.7.md > alnux-pkg-standard.7
scdoc < sel.7.md > sel.7
scdoc < repo.7.md > repo.7
scdoc < mkinitramfs.8.md > mkinitramfs.8
scdoc < chroot-al.1.md > chroot-al.1
}
function main(){
case $1 in
panbuild) scdocbuild || echo "scdoc is missing!" ;;
scdocbuild) scdocbuild ;;
clean) clean ;;
*) scdocbuild || echo "scdoc is missing" ;;
*) scdocbuild ;;
esac
}
main $1

3
man/mkinitramfs.8.md Normal file
View file

@ -0,0 +1,3 @@
mkinitramfs(7)
# mkinitramfs
Alnux's mkinitramfs, it does not accept ANY flags, it's just there to make the initramfs.

3
man/repo.7.md Normal file
View file

@ -0,0 +1,3 @@
repo(7)
# repo
Can be used to manage repositories for aps.

4
man/sel.7.md Normal file
View file

@ -0,0 +1,4 @@
sel(7)
# sel
A alnux select script, can be used for symlinking your linux version and to
write a linux package for aps.