Merge branch 'main' of github.com:iglunix/iglunix
This commit is contained in:
commit
47d0cf2ec8
3 changed files with 20 additions and 13 deletions
23
createimg.sh
23
createimg.sh
|
@ -4,7 +4,7 @@ echo "Createimg.sh"
|
||||||
|
|
||||||
rm iglunix.img
|
rm iglunix.img
|
||||||
|
|
||||||
dd if=../tiny-linux-bootloader/disk of=iglunix.img
|
dd if=/tiny-linux-bootloader/disk of=iglunix.img
|
||||||
|
|
||||||
source build_utils
|
source build_utils
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ echo "PARTITION_START=${PARTITION_START}"
|
||||||
|
|
||||||
#create room for a partition
|
#create room for a partition
|
||||||
ls -al iglunix.img -h
|
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
|
ls -al iglunix.img -h
|
||||||
|
|
||||||
echo "n
|
echo "n
|
||||||
|
@ -44,11 +44,11 @@ rm -rf ${ROOT}
|
||||||
mkdir -p ${ROOT}
|
mkdir -p ${ROOT}
|
||||||
mount ${LOOPBACK} ${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}
|
cp_packages ${ROOT}
|
||||||
|
|
||||||
echo "Linked ld.lld (from llvm) to ld"
|
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"
|
echo "Copying misc files & creating misc dirs for live-usb"
|
||||||
mkdir ${ROOT}/proc/
|
mkdir ${ROOT}/proc/
|
||||||
|
@ -60,8 +60,9 @@ mkdir ${ROOT}/mnt/
|
||||||
mkdir ${ROOT}/etc/
|
mkdir ${ROOT}/etc/
|
||||||
mkdir ${ROOT}/root/
|
mkdir ${ROOT}/root/
|
||||||
cp ./pkgs/tiny-linux-bootloader/fstab ${ROOT}/etc/fstab
|
cp ./pkgs/tiny-linux-bootloader/fstab ${ROOT}/etc/fstab
|
||||||
cp /etc/hostname ${ROOT}/etc/hostname
|
cp ./etc/hostname ${ROOT}/etc/hostname
|
||||||
cp /etc/passwd ${ROOT}/etc/passwd
|
cp ./etc/passwd ${ROOT}/etc/passwd
|
||||||
|
cp ./etc/group ${ROOT}/etc/group
|
||||||
touch ${ROOT}/etc/shadow
|
touch ${ROOT}/etc/shadow
|
||||||
|
|
||||||
echo "Using the host keymap"
|
echo "Using the host keymap"
|
||||||
|
@ -71,14 +72,16 @@ cp /etc/vconsole.conf ${ROOT}/etc/vconsole.conf
|
||||||
|
|
||||||
echo "Copying init.d files& inittab"
|
echo "Copying init.d files& inittab"
|
||||||
mkdir ${ROOT}/etc/init.d/
|
mkdir ${ROOT}/etc/init.d/
|
||||||
cp -r /iglunix/init/init.d ${ROOT}/etc/
|
cp -r ./init/init.d ${ROOT}/etc/
|
||||||
cp /iglunix/init/inittab ${ROOT}/etc/
|
cp ./init/inittab ${ROOT}/etc/
|
||||||
|
|
||||||
echo "Unmounting & closing loopback"
|
echo "Unmounting & closing loopback"
|
||||||
|
|
||||||
umount ${ROOT}
|
#umount ${ROOT}
|
||||||
|
|
||||||
losetup -d ${LOOPBACK}
|
#losetup -d ${LOOPBACK}
|
||||||
|
|
||||||
|
#zstd iglunix.img --ultra -22 -T
|
||||||
exit
|
exit
|
||||||
|
|
||||||
# losetup -o 32256 /dev/loop0 iglunix.img
|
# losetup -o 32256 /dev/loop0 iglunix.img
|
||||||
|
|
|
@ -15,12 +15,12 @@ build() {
|
||||||
--build=x86_64-unknown-linux-musl \
|
--build=x86_64-unknown-linux-musl \
|
||||||
--host=x86_64-unknown-linux-musl
|
--host=x86_64-unknown-linux-musl
|
||||||
|
|
||||||
gmake
|
gmake PROGRAMS='dropbear dbclient dropbearkey dropbearconvert scp'
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $pkgname-$pkgver
|
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/sbin/dropbear $pkgdir/usr/sbin/sshd
|
||||||
ln -sr $pkgdir/usr/bin/dbclient $pkgdir/usr/bin/ssh
|
ln -sr $pkgdir/usr/bin/dbclient $pkgdir/usr/bin/ssh
|
||||||
rm -r $pkgdir/usr/share
|
rm -r $pkgdir/usr/share
|
||||||
|
@ -28,7 +28,7 @@ package() {
|
||||||
|
|
||||||
package_doc() {
|
package_doc() {
|
||||||
cd $pkgname-$pkgver
|
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/bin
|
||||||
rm -r $pkgdir/usr/sbin
|
rm -r $pkgdir/usr/sbin
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,8 +28,12 @@ package() {
|
||||||
# ln -sr $pkgdir/bin/toybox $pkgdir/usr/bin/lspci
|
# ln -sr $pkgdir/bin/toybox $pkgdir/usr/bin/lspci
|
||||||
gmake PREFIX=$pkgdir install
|
gmake PREFIX=$pkgdir install
|
||||||
|
|
||||||
|
# Provided by NetBSD Curses
|
||||||
rm $pkgdir/usr/bin/clear
|
rm $pkgdir/usr/bin/clear
|
||||||
rm $pkgdir/usr/bin/reset
|
rm $pkgdir/usr/bin/reset
|
||||||
|
|
||||||
|
# LLVM Provides this
|
||||||
|
rm $pkgdir/usr/bin/readelf
|
||||||
# rm $pkgdir/usr/bin/tar
|
# rm $pkgdir/usr/bin/tar
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue