mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2025-07-31 05:00:42 +02:00
add base initscripts to initramfs image
This commit is contained in:
@ -41,6 +41,11 @@ IMAGE_PREPROCESS_COMMAND += "image_patch;"
|
||||
image_patch () {
|
||||
# delete unused image
|
||||
rm -rf ${IMAGE_ROOTFS}/boot/*
|
||||
# patch inittab runlevel 6
|
||||
|
||||
# create /etc/fstab
|
||||
cat << EOF > ${IMAGE_ROOTFS}/etc/fstab
|
||||
/dev/mmcblk0p1 /boot auto defaults,sync,noauto 0 0
|
||||
EOF
|
||||
cat << EOF > ${IMAGE_ROOTFS}/etc/hostname
|
||||
diya-recovery
|
||||
EOF
|
||||
}
|
Reference in New Issue
Block a user