gitlab-ci

This commit is contained in:
wt committed 2024-08-22 18:27:44 +07:00
1 parent 188615c4d9
commit 4bc070a2b5
9 files changed
+58 -7

No files matched your search

+6 -4
View File
@@ -73,8 +73,8 @@ kernel() {
cd linux-6.7.4 cd linux-6.7.4
printf "$UGREEN** Configuring Linux Kernel\n$RESET" printf "$UGREEN** Configuring Linux Kernel\n$RESET"
make mrproper &>> $fulllogfile make mrproper &>> $fulllogfile
cp -v $root/kernel/config-6.7.4 .config cp -v $root/kernel/config-6.7.4 .config &>> $fulllogfile
make oldconfig make oldconfig &>> $fulllogfile
check $? "Configure Linux Kernel" check $? "Configure Linux Kernel"
printf "$UGREEN** Building Linux Kernel\n$RESET" printf "$UGREEN** Building Linux Kernel\n$RESET"
make $makeflags &>> $fulllogfile make $makeflags &>> $fulllogfile
@@ -191,6 +191,8 @@ rootfs() {
cp -rv $root/rootfs/etc/* $rootfspath/etc/ &>> $fulllogfile cp -rv $root/rootfs/etc/* $rootfspath/etc/ &>> $fulllogfile
cp -rv $root/rootfs/usr/* $rootfspath/usr/ &>> $fulllogfile cp -rv $root/rootfs/usr/* $rootfspath/usr/ &>> $fulllogfile
cp -rv $root/rootfs/boot/* $rootfspath/boot/ &>> $fulllogfile cp -rv $root/rootfs/boot/* $rootfspath/boot/ &>> $fulllogfile
cd ..
ln -sv /proc/mounts etc/mtab &>> $fulllogfile
rm -rv $build/busybox &>> $fulllogfile rm -rv $build/busybox &>> $fulllogfile
mkdir -v $build/busybox &>> $fulllogfile mkdir -v $build/busybox &>> $fulllogfile
@@ -210,8 +212,8 @@ rootfs() {
glibc glibc
kernel kernel
cp -v $root/build/kernel/linux-6.7.4/arch/x86/boot/bzImage $rootfspath/boot/vmlinuz-linux cp -v $root/build/kernel/linux-6.7.4/arch/x86/boot/bzImage $rootfspath/boot/vmlinuz-linux &>> $fulllogfile
kernel_modules kernel_modules &>> $fulllogfile
initramfs initramfs
cp -v $root/build/initramfs.img $rootfspath/boot/ cp -v $root/build/initramfs.img $rootfspath/boot/
+1 -1
View File
@@ -398,7 +398,7 @@ CONFIG_SHOWKEY=y
# Debian Utilities # Debian Utilities
# #
# CONFIG_PIPE_PROGRESS is not set # CONFIG_PIPE_PROGRESS is not set
# CONFIG_RUN_PARTS is not set CONFIG_RUN_PARTS=y
# CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS is not set # CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS is not set
# CONFIG_FEATURE_RUN_PARTS_FANCY is not set # CONFIG_FEATURE_RUN_PARTS_FANCY is not set
# CONFIG_START_STOP_DAEMON is not set # CONFIG_START_STOP_DAEMON is not set
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
. /etc/init.d/colors.sh
. /etc/init.d/init-funcs
case "$1" in
start)
printf "$UYELLOW** Setting up hostname\n$RESET"
/bin/hostname -F /etc/hostname
check $? "Set up hostname"
;;
stop)
;;
*)
echo "$0 init script usage: $0 {start}"
return 1
esac
return $?
+2 -1
View File
@@ -1,10 +1,11 @@
#!/bin/sh #!/bin/sh
. /etc/init.d/init-funcs
. /etc/init.d/colors.sh . /etc/init.d/colors.sh
case "$1" in case "$1" in
start) start)
printf "$UYELLOW Starting networking\n$RESET" printf "$UYELLOW** Starting networking\n$RESET"
/sbin/ifup -a &> /dev/null /sbin/ifup -a &> /dev/null
check $? "networking" check $? "networking"
echo $! > /var/run/networking.pid echo $! > /var/run/networking.pid
+27
View File
@@ -0,0 +1,27 @@
#!/bin/sh
. /etc/init.d/init-funcs
. /etc/init.d/colors.sh
case "$1" in
start)
printf "$UYELLOW** Mounting virtual filesystems\n$RESET"
mount -t tmpfs tmpfs /var/run
check $? "Mount virtual filesystems"
echo $! > /var/run/networking.pid
;;
stop)
printf "$UYELLOW Umounting virtual filesystems\n$RESET"
umount /var/run
check $? "Umount virtual filesystems"
rm /var/run/networking.pid
;;
restart|reload)
$0 stop
$0 start
;;
*)
echo "$0 init script usage: $0 {start|stop|restart|reload}"
return 1
esac
return $?
+1 -1
View File
@@ -1 +1 @@
\h \r (\l)\n \h \r (\l)
+1
View File
@@ -0,0 +1 @@
../init.d/hostname
+1
View File
@@ -0,0 +1 @@
../init.d/virtualfilesystems
+1
View File
@@ -0,0 +1 @@
../init.d/networking