Merge branch 'main' of github.com:iglunix/iglunix

This commit is contained in:
Ella-0 2021-05-29 10:04:07 +01:00
commit 47d0cf2ec8
3 changed files with 20 additions and 13 deletions

View file

@ -4,7 +4,7 @@ echo "Createimg.sh"
rm iglunix.img
dd if=../tiny-linux-bootloader/disk of=iglunix.img
dd if=/tiny-linux-bootloader/disk of=iglunix.img
source build_utils
@ -16,7 +16,7 @@ echo "PARTITION_START=${PARTITION_START}"
#create room for a partition
ls -al iglunix.img -h
dd if=/dev/zero bs=1 count=0 seek=20G of=iglunix.img
dd if=/dev/zero bs=1 count=0 seek=2560M of=iglunix.img
ls -al iglunix.img -h
echo "n
@ -44,11 +44,11 @@ rm -rf ${ROOT}
mkdir -p ${ROOT}
mount ${LOOPBACK} ${ROOT}
packages=(musl mksh bmake gmake llvm libressl cmake curl rsync flex byacc om4 zlib samurai libffi python ca-certificates zlib expat gettext-tiny git kati netbsd-curses kakoune iglunix rust toybox busybox less file pci-ids e2fsprogs linux util-linux linux-pam kbd)
packages=(musl mksh bmake gmake llvm libressl heirloom-doctools cmake curl rsync flex byacc om4 zlib samurai libffi python ca-certificates zlib expat gettext-tiny git kati netbsd-curses kakoune iglunix rust toybox busybox less file pci-ids e2fsprogs util-linux linux-pam kbd)
cp_packages ${ROOT}
echo "Linked ld.lld (from llvm) to ld"
ln -s /usr/bin/ld.lld /usr/bin/ld
ln -s ${ROOT}/usr/bin/ld.lld ${ROOT}/usr/bin/ld
echo "Copying misc files & creating misc dirs for live-usb"
mkdir ${ROOT}/proc/
@ -60,8 +60,9 @@ mkdir ${ROOT}/mnt/
mkdir ${ROOT}/etc/
mkdir ${ROOT}/root/
cp ./pkgs/tiny-linux-bootloader/fstab ${ROOT}/etc/fstab
cp /etc/hostname ${ROOT}/etc/hostname
cp /etc/passwd ${ROOT}/etc/passwd
cp ./etc/hostname ${ROOT}/etc/hostname
cp ./etc/passwd ${ROOT}/etc/passwd
cp ./etc/group ${ROOT}/etc/group
touch ${ROOT}/etc/shadow
echo "Using the host keymap"
@ -71,14 +72,16 @@ cp /etc/vconsole.conf ${ROOT}/etc/vconsole.conf
echo "Copying init.d files& inittab"
mkdir ${ROOT}/etc/init.d/
cp -r /iglunix/init/init.d ${ROOT}/etc/
cp /iglunix/init/inittab ${ROOT}/etc/
cp -r ./init/init.d ${ROOT}/etc/
cp ./init/inittab ${ROOT}/etc/
echo "Unmounting & closing loopback"
umount ${ROOT}
#umount ${ROOT}
losetup -d ${LOOPBACK}
#losetup -d ${LOOPBACK}
#zstd iglunix.img --ultra -22 -T
exit
# losetup -o 32256 /dev/loop0 iglunix.img

View file

@ -15,12 +15,12 @@ build() {
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl
gmake
gmake PROGRAMS='dropbear dbclient dropbearkey dropbearconvert scp'
}
package() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir
gmake install DESTDIR=$pkgdir PROGRAMS='dropbear dbclient dropbearkey dropbearconvert scp'
ln -sr $pkgdir/usr/sbin/dropbear $pkgdir/usr/sbin/sshd
ln -sr $pkgdir/usr/bin/dbclient $pkgdir/usr/bin/ssh
rm -r $pkgdir/usr/share
@ -28,7 +28,7 @@ package() {
package_doc() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir
gmake install DESTDIR=$pkgdir PROGRAMS='dropbear dbclient dropbearkey dropbearconvert scp'
rm -r $pkgdir/usr/bin
rm -r $pkgdir/usr/sbin
}

View file

@ -28,8 +28,12 @@ package() {
# ln -sr $pkgdir/bin/toybox $pkgdir/usr/bin/lspci
gmake PREFIX=$pkgdir install
# Provided by NetBSD Curses
rm $pkgdir/usr/bin/clear
rm $pkgdir/usr/bin/reset
# LLVM Provides this
rm $pkgdir/usr/bin/readelf
# rm $pkgdir/usr/bin/tar
}