Shouldn't these (and other) uses of ROOT_DIR be ROOT_DISK instead? I can't see anywhere initialising ROOT_DIR...
+ mkdir -p ${ROOT_DISK} || true
I know they were in the previous version, but I don't think the "|| true" on "mkdir -p" or "rm -rf" is right. mkdir -p/rm -rf already exit 0 for the expected cases of "dir already exists" and "dir already deleted", and silently ignoring unexpected errors seems likely to just make us fail more obscurely later.
- sudo dd if=/dev/zero of=${DIR} /disk/SWAP. swap bs=1M count=$SWAP_SIZE disk/SWAP. swap disk/etc/ fstab DIR}/SWAP. swap bs=1M count=$SWAP_SIZE DIR}/SWAP. swap DIR}/etc/ fstab
- sudo mkswap ${DIR}/
- echo "/SWAP.swap none swap sw 0 0" | sudo tee -a ${DIR}/
+ sudo dd if=/dev/zero of=${ROOT_
+ sudo mkswap ${ROOT_
+ echo "/SWAP.swap none swap sw 0 0" | sudo tee -a ${ROOT_
Shouldn't these (and other) uses of ROOT_DIR be ROOT_DISK instead? I can't see anywhere initialising ROOT_DIR...
+ mkdir -p ${ROOT_DISK} || true
I know they were in the previous version, but I don't think the "|| true" on "mkdir -p" or "rm -rf" is right. mkdir -p/rm -rf already exit 0 for the expected cases of "dir already exists" and "dir already deleted", and silently ignoring unexpected errors seems likely to just make us fail more obscurely later.