mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 18:49:48 +02:00
changes
This commit is contained in:
1 parent
d4b498ba7a
commit
c24710eb83
2 files changed
+7
-6
No files matched your search
+6
-1
@@ -53,6 +53,9 @@ typedef uint64_t palerain_option_t;
|
||||
|
||||
#define PALEINFO_MAGIC 'PLSH'
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic warning "-Wpadded"
|
||||
|
||||
/* paleinfo version 2, appended to ramdisk */
|
||||
struct paleinfo {
|
||||
uint32_t magic; /* 'PLSH' */
|
||||
@@ -61,6 +64,8 @@ struct paleinfo {
|
||||
uint64_t kslide; /* kernel slide */
|
||||
uint64_t flags; /* unified palera1n flags */
|
||||
char rootdev[0x10]; /* ex. disk0s1s8 */
|
||||
}__attribute__((packed));
|
||||
};
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
#endif
|
||||
+1
-5
@@ -44,15 +44,11 @@ void *pongo_usb_callback(stuff_t *arg) {
|
||||
upload_pongo_file(handle, **kpf_to_upload, checkra1n_kpf_pongo_len);
|
||||
issue_pongo_command(handle, "modload");
|
||||
issue_pongo_command(handle, palerain_flags_cmd);
|
||||
if ((palerain_flags & palerain_option_rootful))
|
||||
{
|
||||
issue_pongo_command(handle, "rootfs");
|
||||
}
|
||||
#ifdef NO_RAMDISK
|
||||
if (ramdisk_dmg_lzma_len != 0)
|
||||
#endif
|
||||
{
|
||||
strncat(xargs_cmd, " rootdev=md0", 0x270 - strlen(xargs_cmd) - 1);
|
||||
// strncat(xargs_cmd, " rootdev=md0", 0x270 - strlen(xargs_cmd) - 1);
|
||||
upload_pongo_file(handle, **ramdisk_to_upload, ramdisk_dmg_lzma_len);
|
||||
if (&(**ramdisk_to_upload) == &ramdisk_dmg_lzma)
|
||||
issue_pongo_command(handle, "ramdisk " RAMDISK_UNCOMPRESSED_SIZE);
|
||||
|
||||
Reference in new issue
Block a user