parted: add ahci support

This commit is contained in:
Matheus
2026-05-14 15:14:52 -03:00
parent c9e22d162f
commit cf4a156e03
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -15,7 +15,7 @@ new file mode 100644
index 0000000..4fda5e7
--- /dev/null
+++ parted-workdir/libparted/arch/astral.c
@@ -0,0 +1,561 @@
@@ -0,0 +1,564 @@
+/*
+ libparted - a library for manipulating disk partitions
+ Copyright (C) 2006-2007, 2009-2014, 2019-2023 Free Software Foundation,
@@ -145,6 +145,9 @@ index 0000000..4fda5e7
+ if (dev->path && strstr(dev->path, "vioblk"))
+ return PED_DEVICE_VIRTBLK;
+
+ if (dev->path && strstr(dev->path, "ahci"))
+ return PED_DEVICE_SCSI;
+
+ return PED_DEVICE_UNKNOWN;
+error:
+ close(fd);
+1 -1
View File
@@ -1,5 +1,5 @@
name=parted
revision=1
revision=2
from_source=parted
imagedeps="build-essential"
hostdeps="xgcc xbinutils pkgconfig libtool"