initrd.scripts: trivial, fix setup_squashfs_aufs code style

master
Fabio Erculiani 12 years ago
parent f51db27a39
commit be9870f75a

@ -1126,7 +1126,9 @@ setup_squashfs_aufs() {
[ ! -d "${NEW_ROOT}${overlay}" ] && mkdir -p "${NEW_ROOT}${overlay}" [ ! -d "${NEW_ROOT}${overlay}" ] && mkdir -p "${NEW_ROOT}${overlay}"
[ ! -d "${NEW_ROOT}${static}" ] && mkdir -p "${NEW_ROOT}${static}" [ ! -d "${NEW_ROOT}${static}" ] && mkdir -p "${NEW_ROOT}${static}"
echo "aufs / aufs defaults 0 0" > "${NEW_ROOT}"/etc/fstab echo "aufs / aufs defaults 0 0" > "${NEW_ROOT}"/etc/fstab
for i in "${overlay}" "${static}"; do mount --move "${i}" "${NEW_ROOT}${i}"; done for i in "${overlay}" "${static}"; do
mount --move "${i}" "${NEW_ROOT}${i}"
done
# have handy /mnt/cdrom (CDROOT_PATH) as well # have handy /mnt/cdrom (CDROOT_PATH) as well
local new_cdroot="${NEW_ROOT}${CDROOT_PATH}" local new_cdroot="${NEW_ROOT}${CDROOT_PATH}"

Loading…
Cancel
Save