aboutsummaryrefslogtreecommitdiff
path: root/baselayout
diff options
context:
space:
mode:
authorWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-06-03 14:32:34 +0000
committerWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-06-03 14:32:34 +0000
commit8df1d35909ec2d57a6845f5b2c26ee1e83cfd032 (patch)
tree88e5aaa8cf9d3c0538cdff935a56786705548d75 /baselayout
parent96ec28ea0d2c05032f40f50bc6b9de7020138f57 (diff)
downloadalicelinux-8df1d35909ec2d57a6845f5b2c26ee1e83cfd032.tar.gz
alicelinux-8df1d35909ec2d57a6845f5b2c26ee1e83cfd032.zip
Woodpecker CI 5171f1fdd74e7137c305450dd69a29fa5be4143f [SKIP CI]
Diffstat (limited to 'baselayout')
-rw-r--r--baselayout/.checksum10
-rw-r--r--baselayout/.files77
-rw-r--r--baselayout/abuild72
-rw-r--r--baselayout/fstab3
-rw-r--r--baselayout/group24
-rw-r--r--baselayout/hostname1
-rw-r--r--baselayout/hosts4
-rw-r--r--baselayout/issue2
-rw-r--r--baselayout/os-release4
-rw-r--r--baselayout/passwd2
-rw-r--r--baselayout/profile14
-rw-r--r--baselayout/resolv.conf4
-rw-r--r--baselayout/shells5
13 files changed, 222 insertions, 0 deletions
diff --git a/baselayout/.checksum b/baselayout/.checksum
new file mode 100644
index 00000000..0b038af9
--- /dev/null
+++ b/baselayout/.checksum
@@ -0,0 +1,10 @@
+ff8a38c7e3e05589a5f88fbb7fd8be385af0335d4eca970a6dfb0e612a80472c fstab
+993c61e8a5f7bd92134418a10a77004bdad5ccdbff2dc3f46dee10b433beae0a group
+7dc7eff3269479cd011f3d0475457022f498173e41561eaaff1e8e2c9e5cb16e hostname
+9dfa35e082c116b7b6f4508cdebbaa3c08ee513bdeb8189d8cf4a978bc3ecb36 hosts
+f2ede102dbb8f2601f920d503c944211ee9ec2dcb26948d2467f537bad6f06b3 issue
+eb38a785f72a12052b486ad19e3cbe53d2f7414cd218beca2b5e73fa1b238636 os-release
+3b261890ffb02c40996c7214b31db6267f0ee900d098d27bd4b1306998592c9a passwd
+4c1789fd9547bb79732011289aafb6382893a3fe22caa7290cf6c9cfb7fcc669 profile
+4f32d3ce5ffa5fd4242393449c6a54f20d9b3686290044030e177df95fccf819 resolv.conf
+d9cc52181c88c08cad3a3d2e3622fdcf01221fbd52b39065cd641f41f8381e19 shells
diff --git a/baselayout/.files b/baselayout/.files
new file mode 100644
index 00000000..23f3a0d5
--- /dev/null
+++ b/baselayout/.files
@@ -0,0 +1,77 @@
+drwxr-xr-x root/root bin/
+drwxr-xr-x root/root boot/
+drwxr-xr-x root/root dev/
+drwxr-xr-x root/root etc/
+-rw-r--r-- root/root etc/fstab.new
+-rw-r--r-- root/root etc/group.new
+-rw-r--r-- root/root etc/hostname.new
+-rw-r--r-- root/root etc/hosts.new
+-rw-r--r-- root/root etc/issue.new
+lrwxrwxrwx root/root etc/mtab -> ../proc/self/mounts
+drwxr-xr-x root/root etc/opt/
+-rw-r--r-- root/root etc/os-release.new
+-rw-r--r-- root/root etc/passwd.new
+drwxr-xr-x root/root etc/profile.d/
+-rw-r--r-- root/root etc/profile.new
+-rw-r--r-- root/root etc/resolv.conf.new
+-rw-r--r-- root/root etc/shells.new
+drwxr-xr-x root/root etc/skel/
+drwxr-xr-x root/root home/
+drwxr-xr-x root/root lib/
+drwxr-xr-x root/root mnt/
+drwxr-xr-x root/root opt/
+drwxr-xr-x root/root proc/
+drwxr-x--- root/root root/
+drwxr-xr-x root/root run/
+drwxr-xr-x root/root sbin/
+drwxr-xr-x root/root srv/
+drwxr-xr-x root/root sys/
+drwxrwxrwt root/root tmp/
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/local/
+drwxr-xr-x root/root usr/local/bin/
+drwxr-xr-x root/root usr/local/include/
+drwxr-xr-x root/root usr/local/lib/
+drwxr-xr-x root/root usr/local/sbin/
+drwxr-xr-x root/root usr/local/share/
+drwxr-xr-x root/root usr/local/share/man/
+drwxr-xr-x root/root usr/local/share/man/man1/
+drwxr-xr-x root/root usr/local/share/man/man2/
+drwxr-xr-x root/root usr/local/share/man/man3/
+drwxr-xr-x root/root usr/local/share/man/man4/
+drwxr-xr-x root/root usr/local/share/man/man5/
+drwxr-xr-x root/root usr/local/share/man/man6/
+drwxr-xr-x root/root usr/local/share/man/man7/
+drwxr-xr-x root/root usr/local/share/man/man8/
+drwxr-xr-x root/root usr/local/src/
+drwxr-xr-x root/root usr/sbin/
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+drwxr-xr-x root/root usr/share/man/man2/
+drwxr-xr-x root/root usr/share/man/man3/
+drwxr-xr-x root/root usr/share/man/man4/
+drwxr-xr-x root/root usr/share/man/man5/
+drwxr-xr-x root/root usr/share/man/man6/
+drwxr-xr-x root/root usr/share/man/man7/
+drwxr-xr-x root/root usr/share/man/man8/
+drwxr-xr-x root/root usr/src/
+drwxr-xr-x root/root var/
+drwxr-xr-x root/root var/cache/
+drwxr-xr-x root/root var/lib/
+drwxr-xr-x root/root var/lib/misc/
+drwxr-xr-x root/root var/local/
+drwxr-xr-x root/root var/lock/
+drwxr-xr-x root/root var/log/
+-rw------- root/root var/log/btmp
+-rw-r--r-- root/root var/log/faillog
+-rw-rw-r-- root/utmp var/log/lastlog
+-rw-r--r-- root/root var/log/wtmp
+drwxr-xr-x root/root var/opt/
+lrwxrwxrwx root/root var/run -> ../run
+drwxr-xr-x root/root var/spool/
+drwxr-xr-x root/root var/spool/mail/
+drwxrwxrwt root/root var/tmp/
diff --git a/baselayout/abuild b/baselayout/abuild
new file mode 100644
index 00000000..da10179f
--- /dev/null
+++ b/baselayout/abuild
@@ -0,0 +1,72 @@
+name=baselayout
+version=1
+release=1
+source="fstab
+ group
+ hostname
+ hosts
+ issue
+ os-release
+ passwd
+ resolv.conf
+ shells
+ profile"
+
+build() {
+ cd $SRC
+
+ # root dirs
+ for d in proc sys run dev bin boot etc/opt home lib mnt \
+ opt sbin srv var; do
+ mkdir -p $PKG/$d
+ done
+ install -d -m 0750 $PKG/root
+ install -d -m 1777 $PKG/tmp $PKG/var/tmp
+
+ # /usr and /usr/local dirs
+ for d in bin include lib sbin src; do
+ mkdir -p $PKG/usr/$d
+ mkdir -p $PKG/usr/local/$d
+ done
+
+ # man page dirs
+ for d in 1 2 3 4 5 6 7 8; do
+ mkdir -p $PKG/usr/share/man/man$d
+ mkdir -p $PKG/usr/local/share/man/man$d
+ done
+
+ # /var dirs
+ for d in log spool/mail opt cache lib/misc local; do
+ mkdir -p $PKG/var/$d
+ done
+
+ ln -s ../run $PKG/var/run
+ #ln -s ../run/lock $PKG/var/lock
+ install -d $PKG/var/lock
+
+ ln -s ../proc/self/mounts $PKG/etc/mtab
+
+ # log files
+ for f in btmp lastlog faillog wtmp; do
+ touch $PKG/var/log/$f
+ done
+ chgrp utmp $PKG/var/log/lastlog
+ chmod 664 $PKG/var/log/lastlog
+ chmod 600 $PKG/var/log/btmp
+
+ install -m644 passwd $PKG/etc
+ install -m644 group $PKG/etc
+ install -m644 resolv.conf $PKG/etc
+ install -m644 hosts $PKG/etc
+ install -m644 hostname $PKG/etc
+ install -m644 shells $PKG/etc
+ install -m644 fstab $PKG/etc
+
+ install -dm0755 $PKG/etc/profile.d
+
+ install -d $PKG/etc/skel
+ install -m644 issue $PKG/etc
+ install -m644 profile $PKG/etc
+
+ cat os-release > $PKG/etc/os-release
+}
diff --git a/baselayout/fstab b/baselayout/fstab
new file mode 100644
index 00000000..abe0e850
--- /dev/null
+++ b/baselayout/fstab
@@ -0,0 +1,3 @@
+# /etc/fstab
+
+# <device> <dir> <type> <options> <dump> <fsck>
diff --git a/baselayout/group b/baselayout/group
new file mode 100644
index 00000000..a8a09743
--- /dev/null
+++ b/baselayout/group
@@ -0,0 +1,24 @@
+root:x:0:
+bin:x:1:daemon
+sys:x:2:
+kmem:x:3:
+tape:x:4:
+tty:x:5:
+daemon:x:6:
+floppy:x:7:
+disk:x:8:
+lp:x:9:
+dialout:x:10:
+audio:x:11:
+video:x:12:
+utmp:x:13:
+usb:x:14:
+cdrom:x:15:
+adm:x:16:
+wheel:x:17:
+messagebus:x:18:
+input:x:24:
+mail:x:34:
+kvm:x:61:
+nogroup:x:99:
+users:x:999:
diff --git a/baselayout/hostname b/baselayout/hostname
new file mode 100644
index 00000000..2fbb50c4
--- /dev/null
+++ b/baselayout/hostname
@@ -0,0 +1 @@
+localhost
diff --git a/baselayout/hosts b/baselayout/hosts
new file mode 100644
index 00000000..a126a53e
--- /dev/null
+++ b/baselayout/hosts
@@ -0,0 +1,4 @@
+# /etc/hosts
+
+127.0.0.1 localhost
+::1 localhost
diff --git a/baselayout/issue b/baselayout/issue
new file mode 100644
index 00000000..0157745b
--- /dev/null
+++ b/baselayout/issue
@@ -0,0 +1,2 @@
+Alice Linux \r (\l)
+
diff --git a/baselayout/os-release b/baselayout/os-release
new file mode 100644
index 00000000..0752c0f5
--- /dev/null
+++ b/baselayout/os-release
@@ -0,0 +1,4 @@
+NAME="Alice Linux"
+PRETTY_NAME="Alice Linux"
+VERSION="One"
+ID="alice"
diff --git a/baselayout/passwd b/baselayout/passwd
new file mode 100644
index 00000000..1edbef6c
--- /dev/null
+++ b/baselayout/passwd
@@ -0,0 +1,2 @@
+root:x:0:0:root:/root:/bin/sh
+nobody:x:99:99:Unprivileged User:/dev/null:/bin/false
diff --git a/baselayout/profile b/baselayout/profile
new file mode 100644
index 00000000..1d327a82
--- /dev/null
+++ b/baselayout/profile
@@ -0,0 +1,14 @@
+# /etc/profile
+
+# Set the initial path
+export PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+# Set umask
+umask 022
+
+for script in /etc/profile.d/*.sh ; do
+ if [ -r $script ] ; then
+ . $script
+ fi
+ unset script
+done
diff --git a/baselayout/resolv.conf b/baselayout/resolv.conf
new file mode 100644
index 00000000..c69c1524
--- /dev/null
+++ b/baselayout/resolv.conf
@@ -0,0 +1,4 @@
+# /etc/resolv.conf
+
+nameserver 8.8.8.8
+nameserver 8.8.4.4
diff --git a/baselayout/shells b/baselayout/shells
new file mode 100644
index 00000000..f0c4a8db
--- /dev/null
+++ b/baselayout/shells
@@ -0,0 +1,5 @@
+# /etc/shells
+
+/bin/sh
+/bin/dash
+/bin/bash