initramfs: fix init symlink creation
authorMike Frysinger <vapier@gentoo.org>
Wed, 17 Nov 2010 06:46:22 +0000 (01:46 -0500)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 17 Nov 2010 20:20:45 +0000 (21:20 +0100)
commitdde5b6830c7d53591cf7f52f9c433eed65c89f84
treec376de0e4e2e5452a06046a2681170ad6a08ceff
parentf80fdd2a33aaeffb46bcbe41f8106eb0cb18c5b3
initramfs: fix init symlink creation

The -e test will dereference the symlink, so if there is no /bin/init,
we will constantly try to create the symlink.  So rather than error on
subsequent runs when the link exists, use the force flag to ln.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
fs/initramfs/initramfs.mk