Unverified Commit 48b39984 authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

adelie-build-txz: Don't put OpenRC crap in mini rootfs

parent 5ab54048
......@@ -135,22 +135,34 @@ install_pkgs() {
}
make_structure() {
mkdir -p rootfs-$ARCH/etc/runlevels/{sysinit,boot,default,shutdown}
if test -n "${MINI+mini}"; then
echo 'adelie-mini' > rootfs-$ARCH/etc/hostname
else
echo 'adelie-root' > rootfs-$ARCH/etc/hostname
mkdir -p rootfs-$ARCH/etc/runlevels/{sysinit,boot,default,shutdown}
echo 'mtab_is_file=no' > rootfs-$ARCH/etc/conf.d/mtab
echo 'adelie-root' > rootfs-$ARCH/etc/hostname
echo 'mtab_is_file=no' > rootfs-$ARCH/etc/conf.d/mtab
for siservice in udev udev-trigger lvmetad; do
ln -s /etc/init.d/$siservice \
rootfs-$ARCH/etc/runlevels/sysinit/$siservice
done
for siservice in udev udev-trigger lvmetad; do
ln -s /etc/init.d/$siservice \
rootfs-$ARCH/etc/runlevels/sysinit/$siservice
done
for bootservice in root binfmt bootmisc fsck hostname hwclock keymaps \
localmount loopback modules mtab procfs sysctl sysfsconf termencoding \
tmpfiles.setup urandom; do
ln -s /etc/init.d/$bootservice \
rootfs-$ARCH/etc/runlevels/boot/$bootservice
done
for bootservice in root binfmt bootmisc fsck hostname hwclock keymaps \
localmount loopback modules mtab procfs sysctl sysfsconf termencoding \
tmpfiles.setup urandom; do
ln -s /etc/init.d/$bootservice \
rootfs-$ARCH/etc/runlevels/boot/$bootservice
done
cp AdelieTux.icns rootfs-$ARCH/.VolumeIcon.icns
# Put a copy of the kernel(s) in the kernels-$ARCH/ directory, so that
# users may download them for netbooting or such.
mkdir -p out/kernels/$ARCH
cp -r rootfs-$ARCH/boot/* out/kernels/$ARCH/
fi
cat >rootfs-$ARCH/etc/fstab <<- FSTAB
# Welcome to Adélie Linux.
......@@ -174,13 +186,6 @@ make_structure() {
https://distfiles.adelielinux.org/adelie/$VERSION/system/$EXTRA_MIRROR
https://distfiles.adelielinux.org/adelie/$VERSION/user/$EXTRA_MIRROR
REPOS
cp AdelieTux.icns rootfs-$ARCH/.VolumeIcon.icns
# Put a copy of the kernel(s) in the kernels-$ARCH/ directory, so that
# users may download them for netbooting or such.
mkdir -p out/kernels/$ARCH
cp -r rootfs-$ARCH/boot/* out/kernels/$ARCH/
}
tar_it() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment