Merge branch 'main' of github.com:iglunix/iglunix

This commit is contained in:
Ella-0 2021-04-07 08:59:04 +01:00
commit 4e68361184

View file

@ -30,7 +30,11 @@ w
PARTITION_START2=$((${PARTITION_START} * 512)) PARTITION_START2=$((${PARTITION_START} * 512))
echo "PARTITION_START2: ${PARTITION_START2}" echo "PARTITION_START2: ${PARTITION_START2}"
LOOPBACK=$(losetup -o ${PARTITION_START2} -s -f iglunix.img) LOOPBACK=$(losetup -o ${PARTITION_START2} -s -f iglunix.img)
echo "LOOPBACK: ${LOOPBACK}" echo "loopback interface: ${LOOPBACK}"
#ERROR IF NO LOOPBACK
[ -z "$LOOPBACK" ] && echo "loopback creation failed!" && exit -1
mke2fs -t ext4 -L "__IGLUNIX_ROOT" ${LOOPBACK} mke2fs -t ext4 -L "__IGLUNIX_ROOT" ${LOOPBACK}
ROOT=/mnt/__IGLUNIX_ROOT ROOT=/mnt/__IGLUNIX_ROOT
@ -51,6 +55,8 @@ cp /etc/hostname ${ROOT}/hostname
echo "Using the host keymap" echo "Using the host keymap"
cp /etc/vconsole.conf ${ROOT}/etc/vconsole.conf cp /etc/vconsole.conf ${ROOT}/etc/vconsole.conf
#TODO: this is a systemd file,
# use udev/kbd
echo "Unmounting & closing loopback" echo "Unmounting & closing loopback"