From bc2c108d771abcb6dfce89c6b64ca7f71af1c02c Mon Sep 17 00:00:00 2001 From: Takumi Sueda Date: Tue, 21 Mar 2023 18:01:11 +0900 Subject: [PATCH] Mount /boot automatically --- os-brainux/override.sh | 2 ++ os-brainux/override/lib/systemd/system/boot.mount | 10 ++++++++++ os-brainux/setup_brainux.sh | 3 +++ 3 files changed, 15 insertions(+) create mode 100644 os-brainux/override/lib/systemd/system/boot.mount diff --git a/os-brainux/override.sh b/os-brainux/override.sh index e28c617..f4eba6e 100755 --- a/os-brainux/override.sh +++ b/os-brainux/override.sh @@ -19,3 +19,5 @@ install -g 1000 -o 1000 -m 0644 $SRC/home/user/.config/fcitx/profile $DST/home/u sudo -u#1000 -g#1000 mkdir -p $DST/home/user/lxterminal install -g 1000 -o 1000 -m 0644 $SRC/home/user/lxterminal/lxterminal.conf $DST/home/user/lxterminal/lxterminal.conf install -g root -o root -m 0644 -D $SRC/etc/jwm/system.jwmrc $DST/etc/jwm/system.jwmrc + +install -g root -o root -m 0644 $SRC/lib/systemd/system/boot.mount $DST/lib/systemd/system/boot.mount diff --git a/os-brainux/override/lib/systemd/system/boot.mount b/os-brainux/override/lib/systemd/system/boot.mount new file mode 100644 index 0000000..b6412cb --- /dev/null +++ b/os-brainux/override/lib/systemd/system/boot.mount @@ -0,0 +1,10 @@ +[Unit] +Description=Mount boot partition + +[Mount] +What=/dev/mmcblk1p1 +Where=/boot +Options=ro + +[Install] +WantedBy=multi-user.target diff --git a/os-brainux/setup_brainux.sh b/os-brainux/setup_brainux.sh index 4f21824..15e607b 100755 --- a/os-brainux/setup_brainux.sh +++ b/os-brainux/setup_brainux.sh @@ -136,6 +136,9 @@ ttymxc0 ttyLP0 EOF +# Enable /boot mount +systemctl enable boot.mount + # Get wild cat < /etc/apt/sources.list deb http://deb.debian.org/debian bullseye main contrib non-free