Use target hostnames and restore lk2nd bootloader reboot
This commit is contained in:
1 parent
1c011b360a
commit
3b96b8f242
22 files changed
+203
-70
No files matched your search
@@ -160,16 +160,7 @@ chown 0:0 "$ROOTFS/etc/bananarchy"
|
||||
chmod 0700 "$ROOTFS/etc/bananarchy"
|
||||
|
||||
echo "[5/8] Writing base system configuration..."
|
||||
printf '%s\n' "nokia-argon" > "$ROOTFS/etc/hostname"
|
||||
cat > "$ROOTFS/etc/hosts" <<EOF
|
||||
127.0.0.1 nokia-argon localhost.localdomain localhost
|
||||
::1 localhost ipv6-localhost ipv6-loopback
|
||||
fe00::0 ipv6-localnet
|
||||
ff00::0 ipv6-mcastprefix
|
||||
ff02::1 ipv6-allnodes
|
||||
ff02::2 ipv6-allrouters
|
||||
ff02::3 ipv6-allhosts
|
||||
EOF
|
||||
"$REPO/scripts/set-bananarchy-hostname.sh" "$ROOTFS" "$DEVICE"
|
||||
printf '%s\n' "LANG=C.UTF-8" > "$ROOTFS/etc/locale.conf"
|
||||
if [ -f "$ROOTFS/usr/share/zoneinfo/UTC" ]; then
|
||||
cp "$ROOTFS/usr/share/zoneinfo/UTC" "$ROOTFS/etc/localtime"
|
||||
@@ -189,7 +180,8 @@ fi
|
||||
printf '\n' >> "$ROOTFS/etc/machine-id"
|
||||
fi
|
||||
mkdir -p "$ROOTFS/etc/sysctl.d"
|
||||
cat > "$ROOTFS/etc/sysctl.d/90-nokia-argon-lowram.conf" <<EOF
|
||||
rm -f "$ROOTFS/etc/sysctl.d/90-nokia-argon-lowram.conf"
|
||||
cat > "$ROOTFS/etc/sysctl.d/90-bananarchy-lowram.conf" <<EOF
|
||||
vm.swappiness = 180
|
||||
vm.page-cluster = 0
|
||||
vm.vfs_cache_pressure = 150
|
||||
|
||||
Reference in new issue
Block a user