Commit 5d617a22 authored by Eric Vidal's avatar Eric Vidal
Browse files

rewrite gen_fstab with better written

parent 66ddb3e3
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -400,12 +400,8 @@ install_pack(){
##		Generate fstab

gen_fstab(){
	if [[ ! -s "$newroot/etc/fstab" ]]; then
	echo_info " Generate fstab"
		genfstab -p "$newroot" >> "$newroot/etc/fstab" || die " Impossible to generate fstab"
	else
		echo_valid " File $newroot/etc/fstab already exist"
	fi
	genfstab -p "$newroot" > "$newroot/etc/fstab" || die " Impossible to generate fstab"
}

##		Copy directory rootfs in $newroot