index : mkinitcpio-archiso32 | |
Archlinux32 initcpio scripts used by archiso | gitolite user |
summaryrefslogtreecommitdiff |
author | nl6720 <nl6720@gmail.com> | 2020-10-05 13:20:23 +0300 |
---|---|---|
committer | nl6720 <nl6720@gmail.com> | 2021-03-09 16:25:45 +0200 |
commit | d13c747c67a140362a463e186fcdc900a42c840f (patch) | |
tree | b5a7d09225874f143cfd4b5dfd96267e028a9f9c /hooks | |
parent | 9ea3c479f97a40fda12e23be27c207a6589105c1 (diff) |
-rw-r--r-- | hooks/archiso | 9 |
diff --git a/hooks/archiso b/hooks/archiso index 716c69e..bf98332 100644 --- a/hooks/archiso +++ b/hooks/archiso @@ -221,15 +221,16 @@ archiso_mount_handler() { mkdir -p "/run/archiso/cowspace/${cow_directory}" chmod 0700 "/run/archiso/cowspace/${cow_directory}" - _mnt_sfs "/run/archiso/bootmnt/${archisobasedir}/${arch}/airootfs.sfs" "/run/archiso/sfs/airootfs" - if [ -f "/run/archiso/sfs/airootfs/airootfs.img" ]; then - _mnt_dmsnapshot "/run/archiso/sfs/airootfs/airootfs.img" "${newroot}" "/" + _mnt_sfs "/run/archiso/bootmnt/${archisobasedir}/${arch}/airootfs.sfs" "/run/archiso/airootfs" + if [ -f "/run/archiso/airootfs/airootfs.img" ]; then + _mnt_dmsnapshot "/run/archiso/airootfs/airootfs.img" "${newroot}" "/" else - _mnt_overlayfs "/run/archiso/sfs/airootfs" "${newroot}" "/" + _mnt_overlayfs "/run/archiso/airootfs" "${newroot}" "/" fi if [ "${copytoram}" = "y" ]; then umount -d /run/archiso/bootmnt + rmdir /run/archiso/bootmnt fi } |