Files

15 lines
350 B
Bash
Executable File

#!/bin/bash -e
install -m 755 files/system-readonly "${ROOTFS_DIR}/sbin/"
if [ "${PLATFORM}" == "rpi" ]; then
install -m 644 files/fstab-rpi "${ROOTFS_DIR}/etc/fstab"
else
install -m 644 files/fstab "${ROOTFS_DIR}/etc/fstab"
fi
# Create system user and set root password
on_chroot << EOF
useradd -r -M -d / system
echo "root:root" | chpasswd
EOF