rootfs_deb.bbclass: fix alternatives handling
rootfs_deb.bbclass: fix alternatives handling

After fixing update-alternatives-native the command:
   rmdir ${IMAGE_ROOTFS}/var/dpkg/alternatives

fails, because the directory is not empty, and the command:
  ln -s ${libdir}/opkg/alternatives ${IMAGE_ROOTFS}/var/dpkg/alternatives

creates a dangling symlink, because we mkdir only the parent directory of
the target.

Fixes: mkdir -p the alternatives directory itself and move alternatives
definitions into it before rmdiring the original alternatives directory

Signed-off-by: Filip Zyzniewski <2e220dbf8ff81856f7ab8e8faaf24bb7ec33ce25@gmail.com>
Signed-off-by: Tom Rini <4c3d5c8f8c21c27dd329bd585f481113514551fd@mentor.com>

sentient-energy/emsw-oe-mirror,SIFTeam/openembedded,dellysunnymtech/sakoman-oe,BlackPole/bp-openembedded,rascalmicro/openembedded-rascal,xifengchuo/openembedded,dellysunnymtech/sakoman-oe,JamesAng/oe,scottellis/overo-oe,dave-billin/overo-ui-moos-auv,thebohemian/openembedded,dave-billin/overo-ui-moos-auv,giobauermeister/openembedded,nx111/openembeded_openpli2.1_nx111,sledz/oe,JamesAng/goe,dellysunnymtech/sakoman-oe,JamesAng/oe,openembedded/openembedded,sledz/oe,sledz/oe,dellysunnymtech/sakoman-oe,sledz/oe,JamesAng/oe,scottellis/overo-oe,sampov2/audio-openembedded,dave-billin/overo-ui-moos-auv,dave-billin/overo-ui-moos-auv,openembedded/openembedded,thebohemian/openembedded,hulifox008/openembedded,giobauermeister/openembedded,yyli/overo-oe,rascalmicro/openembedded-rascal,yyli/overo-oe,dellysunnymtech/sakoman-oe,dave-billin/overo-ui-moos-auv,thebohemian/openembedded,sentient-energy/emsw-oe-mirror,JamesAng/goe,dellysunnymtech/sakoman-oe,giobauermeister/openembedded,nx111/openembeded_openpli2.1_nx111,BlackPole/bp-openembedded,sampov2/audio-openembedded,mrchapp/arago-oe-dev,xifengchuo/openembedded,dellysunnymtech/sakoman-oe,openembedded/openembedded,sutajiokousagi/openembedded,dave-billin/overo-ui-moos-auv,rascalmicro/openembedded-rascal,scottellis/overo-oe,sutajiokousagi/openembedded,openembedded/openembedded,rascalmicro/openembedded-rascal,JamesAng/oe,nx111/openembeded_openpli2.1_nx111,sutajiokousagi/openembedded,JamesAng/goe,BlackPole/bp-openembedded,buglabs/oe-buglabs,sutajiokousagi/openembedded,thebohemian/openembedded,thebohemian/openembedded,sampov2/audio-openembedded,BlackPole/bp-openembedded,scottellis/overo-oe,openembedded/openembedded,nx111/openembeded_openpli2.1_nx111,SIFTeam/openembedded,openembedded/openembedded,buglabs/oe-buglabs,sutajiokousagi/openembedded,giobauermeister/openembedded,mrchapp/arago-oe-dev,buglabs/oe-buglabs,SIFTeam/openembedded,sampov2/audio-openembedded,hulifox008/openembedded,scottellis/overo-oe,openembedded/openembedded,rascalmicro/openembedded-rascal,xifengchuo/openembedded,sentient-energy/emsw-oe-mirror,sledz/oe,BlackPole/bp-openembedded,openembedded/openembedded,SIFTeam/openembedded,SIFTeam/openembedded,giobauermeister/openembedded,rascalmicro/openembedded-rascal,JamesAng/goe,thebohemian/openembedded,xifengchuo/openembedded,dellysunnymtech/sakoman-oe,BlackPole/bp-openembedded,nx111/openembeded_openpli2.1_nx111,scottellis/overo-oe,sampov2/audio-openembedded,xifengchuo/openembedded,sentient-energy/emsw-oe-mirror,buglabs/oe-buglabs,scottellis/overo-oe,xifengchuo/openembedded,JamesAng/oe,sentient-energy/emsw-oe-mirror,buglabs/oe-buglabs,sampov2/audio-openembedded,SIFTeam/openembedded,mrchapp/arago-oe-dev,yyli/overo-oe,sledz/oe,xifengchuo/openembedded,dave-billin/overo-ui-moos-auv,mrchapp/arago-oe-dev,giobauermeister/openembedded,yyli/overo-oe,openembedded/openembedded,sutajiokousagi/openembedded,thebohemian/openembedded,hulifox008/openembedded,openembedded/openembedded,hulifox008/openembedded,nx111/openembeded_openpli2.1_nx111,giobauermeister/openembedded,rascalmicro/openembedded-rascal,giobauermeister/openembedded,nx111/openembeded_openpli2.1_nx111,JamesAng/goe,mrchapp/arago-oe-dev,BlackPole/bp-openembedded,buglabs/oe-buglabs,sentient-energy/emsw-oe-mirror,nx111/openembeded_openpli2.1_nx111,hulifox008/openembedded,openembedded/openembedded,hulifox008/openembedded,mrchapp/arago-oe-dev,rascalmicro/openembedded-rascal,SIFTeam/openembedded,yyli/overo-oe,giobauermeister/openembedded,buglabs/oe-buglabs,sentient-energy/emsw-oe-mirror,xifengchuo/openembedded,yyli/overo-oe,yyli/overo-oe,xifengchuo/openembedded,JamesAng/oe,sutajiokousagi/openembedded,yyli/overo-oe,JamesAng/oe,hulifox008/openembedded,JamesAng/goe,JamesAng/goe,dellysunnymtech/sakoman-oe,mrchapp/arago-oe-dev,buglabs/oe-buglabs,sledz/oe,sampov2/audio-openembedded