#!/bin/bash -efu

. pipeline-sh-functions

[ -n "$prevdir" ] ||
	fatal "no previous step to use as rootfs"

run mount --move "$prevdir" "$rootmnt"
echo localdev > /etc/initrd/method
exit 2
