3 DESCRIPTION = "Provides an init script that changes the root file-system to unionfs."
4 DEPENDS = "busybox base-files"
5 RDEPENDS = "busybox base-files"
8 MAINTAINER = "Chris Lord <cwiiis@handhelds.org>"
10 SRC_URI = "file://init.unionroot"
12 inherit update-alternatives
14 ALTERNATIVE_NAME = "init"
15 ALTERNATIVE_LINK = "/sbin/init"
16 ALTERNATIVE_PATH = "/sbin/init.unionroot"
17 ALTERNATIVE_PRIORITY = "100"
20 install -d ${D}${base_sbindir}
21 install -m 0755 ${WORKDIR}/init.unionroot ${D}${base_sbindir}/
26 mv $D/${sysconfdir}/fstab $D/${sysconfdir}/fstab.old
27 awk 'BEGIN { print "# Altered by unionroot" }
30 print $1 "\t/media/realroot\t" $3 "\t" $4 "\t" $5 "\t" $6
36 }' $D/${sysconfdir}/fstab.old > $D/${sysconfdir}/fstab