Skip to content

Commit

Permalink
Enable swap in firstboot, change btrfs commit interval to 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
tiopex committed Dec 14, 2023
1 parent ef60afe commit 7004ee7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions board/miyoo/boot/firstboot
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ fi

# Format swap parition
/sbin/mkswap /dev/mmcblk0p3
/sbin/swapon /dev/mmcblk0p3

mount -o remount,ro "${MOUNTDIR}" | tee -a ${LOG}

Expand Down
2 changes: 1 addition & 1 deletion board/miyoo/rootfs/etc/inittab
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
::sysinit:/bin/mkdir -p /dev/shm
::sysinit:/bin/mount -a
::sysinit:/bin/hostname -F /etc/hostname
::sysinit:/bin/mount /dev/mmcblk0p4 /mnt -o discard=async,noatime,nodiratime,exec
::sysinit:/bin/mount /dev/mmcblk0p4 /mnt -o commit=5,flushoncommit,noatime,nodiratime,exec
::sysinit:/bin/mount /dev/mmcblk0p1 /boot -t vfat -o ro,exec,sync,utf8
::sysinit:/sbin/swapon /dev/mmcblk0p3

Expand Down

0 comments on commit 7004ee7

Please sign in to comment.