diff options
-rw-r--r-- | scripts/lib/wic/kickstart/custom_commands/partition.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index 4f5a1e5ce4..f3d553b885 100644 --- a/scripts/lib/wic/kickstart/custom_commands/partition.py +++ b/scripts/lib/wic/kickstart/custom_commands/partition.py | |||
@@ -193,10 +193,15 @@ class Wic_PartData(Mic_PartData): | |||
193 | 193 | ||
194 | Currently handles ext2/3/4, btrfs and vfat. | 194 | Currently handles ext2/3/4, btrfs and vfat. |
195 | """ | 195 | """ |
196 | pseudo = "export PSEUDO_PREFIX=%s/usr;" % native_sysroot | 196 | p_prefix = os.environ.get("PSEUDO_PREFIX", "%s/usr" % native_sysroot) |
197 | pseudo += "export PSEUDO_LOCALSTATEDIR=%s/../pseudo;" % rootfs_dir | 197 | p_localstatedir = os.environ.get("PSEUDO_LOCALSTATEDIR", |
198 | pseudo += "export PSEUDO_PASSWD=%s;" % rootfs_dir | 198 | "%s/../pseudo" % rootfs_dir) |
199 | pseudo += "export PSEUDO_NOSYMLINKEXP=1;" | 199 | p_passwd = os.environ.get("PSEUDO_PASSWD", rootfs_dir) |
200 | p_nosymlinkexp = os.environ.get("PSEUDO_NOSYMLINKEXP", "1") | ||
201 | pseudo = "export PSEUDO_PREFIX=%s;" % p_prefix | ||
202 | pseudo += "export PSEUDO_LOCALSTATEDIR=%s;" % p_localstatedir | ||
203 | pseudo += "export PSEUDO_PASSWD=%s;" % p_passwd | ||
204 | pseudo += "export PSEUDO_NOSYMLINKEXP=%s;" % p_nosymlinkexp | ||
200 | pseudo += "%s/usr/bin/pseudo " % native_sysroot | 205 | pseudo += "%s/usr/bin/pseudo " % native_sysroot |
201 | 206 | ||
202 | if self.fstype.startswith("ext"): | 207 | if self.fstype.startswith("ext"): |