mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-28 21:21:20 +00:00
improve setup alpine and crux script
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
parent
0b6fc88b20
commit
ad2f5337ae
@ -35,7 +35,7 @@ fi
|
||||
# copy etc/resolv.conf
|
||||
mkdir -p "${installdir}/etc"
|
||||
cp /etc/resolv.conf "${installdir}/etc/resolv.conf"
|
||||
chmod 755 "${installdir}/etc/resolv.conf"
|
||||
chmod 644 "${installdir}/etc/resolv.conf"
|
||||
|
||||
# write used mirror as apk repository.
|
||||
mkdir -p "${installdir}/etc/apk"
|
||||
|
@ -16,7 +16,7 @@ set -e -x
|
||||
|
||||
iso="crux-3.0.iso"
|
||||
mnt="/mnt/crux"
|
||||
installdir="/home/hiltjo/cruxtest"
|
||||
installdir="/ns/crux"
|
||||
|
||||
# mount
|
||||
dev=$(losetup -f)
|
||||
@ -33,17 +33,18 @@ tar -xJf "${mnt}/rootfs.tar.xz"
|
||||
#mkdir -p "${installdir}/pkg/"
|
||||
#cp -a "${mnt}/crux/core" "${installdir}/pkg/"
|
||||
|
||||
# unmount
|
||||
cd /
|
||||
umount "${mnt}"
|
||||
losetup -d "${dev}"
|
||||
|
||||
# make package dir needed by crux.
|
||||
mkdir -p "${installdir}/var/lib/pkg"
|
||||
touch "${installdir}/var/lib/pkg/db"
|
||||
|
||||
# copy etc/resolv.conf
|
||||
mkdir -p "${installdir}/etc"
|
||||
cp /etc/resolv.conf "${installdir}/etc/resolv.conf"
|
||||
chmod 755 "${installdir}/etc/resolv.conf"
|
||||
chmod 644 "${installdir}/etc/resolv.conf"
|
||||
|
||||
# unmount
|
||||
cd /
|
||||
umount "${mnt}"
|
||||
losetup -d "${dev}" || true
|
||||
|
||||
# rmdir "${mnt}"
|
||||
|
Loading…
Reference in New Issue
Block a user