mirror of
git://soft.sys114.com/odroid-stamper
synced 2025-12-19 01:48:42 +09:00
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: I5b8054b8951f16ba48da4cacdab5f7af23f91f1c
24 lines
571 B
Bash
Executable File
24 lines
571 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -f /etc/fstab ]; then
|
|
# Remove BOOT/ROOTFS mount points
|
|
sed -i "/ \/boot /d" /etc/fstab
|
|
sed -i "/ \/ /d" /etc/fstab
|
|
# Remove EFI partition not to mount
|
|
sed -i "/\/boot\/efi/d" /etc/fstab
|
|
fi
|
|
|
|
if [ "x@@DEFAULT_DEV_ROOTFS@@" != "x" ]; then
|
|
cat <<__EOF | tee -a /etc/fstab >/dev/null
|
|
UUID="@@DEFAULT_DEV_ROOTFS@@" / ext4 rw,relatime,data=ordered 0 0
|
|
__EOF
|
|
fi
|
|
|
|
if [ "x@@DEFAULT_DEV_BOOT@@" != "x" ]; then
|
|
cat <<__EOF | tee -a /etc/fstab >/dev/null
|
|
UUID="@@DEFAULT_DEV_BOOT@@" /boot ext2 rw,relatime,errors=continue 0 0
|
|
__EOF
|
|
fi
|
|
|
|
update-initramfs -u
|